Skip to content

Commit

Permalink
Add some extra tests to make sure we can get the value of hyphenated …
Browse files Browse the repository at this point in the history
…CSS properties, for #3732.
  • Loading branch information
jeresig committed Dec 22, 2009
1 parent e87b090 commit 1ea539b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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"');

Expand Down Expand Up @@ -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." );
Expand Down

0 comments on commit 1ea539b

Please sign in to comment.