Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some extra tests to make sure we can get the value of hyphenated …

…CSS properties, for #3732.
  • Loading branch information...
commit 1ea539b4f08d9056e7e133173f7093908a513f77 1 parent e87b090
@jeresig jeresig authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/css.js
View
4 test/unit/css.js
@@ -1,7 +1,7 @@
module("css");
test("css(String|Hash)", function() {
- expect(28);
+ expect(30);
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
@@ -44,7 +44,9 @@ test("css(String|Hash)", function() {
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');
equals( parseInt(div.css("fontSize")), 16, "Verify fontSize px set." );
+ equals( parseInt(div.css("font-size")), 16, "Verify fontSize px set." );
equals( parseInt(child.css("fontSize")), 16, "Verify fontSize px set." );
+ equals( parseInt(child.css("font-size")), 16, "Verify fontSize px set." );
child.attr("class", "em");
equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." );
Please sign in to comment.
Something went wrong with that request. Please try again.