Skip to content

Commit 1ea539b

Browse files
committed
Add some extra tests to make sure we can get the value of hyphenated CSS properties, for #3732.
1 parent e87b090 commit 1ea539b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/css.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module("css");
22

33
test("css(String|Hash)", function() {
4-
expect(28);
4+
expect(30);
55

66
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
77

@@ -44,7 +44,9 @@ test("css(String|Hash)", function() {
4444
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');
4545

4646
equals( parseInt(div.css("fontSize")), 16, "Verify fontSize px set." );
47+
equals( parseInt(div.css("font-size")), 16, "Verify fontSize px set." );
4748
equals( parseInt(child.css("fontSize")), 16, "Verify fontSize px set." );
49+
equals( parseInt(child.css("font-size")), 16, "Verify fontSize px set." );
4850

4951
child.attr("class", "em");
5052
equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." );

0 commit comments

Comments
 (0)