Commit 1ea539b4 authored by jeresig's avatar jeresig

Add some extra tests to make sure we can get the value of hyphenated CSS properties, for #3732.

parent e87b090c
module("css"); module("css");
test("css(String|Hash)", function() { test("css(String|Hash)", function() {
expect(28); expect(30);
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"'); equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
...@@ -44,7 +44,9 @@ test("css(String|Hash)", function() { ...@@ -44,7 +44,9 @@ test("css(String|Hash)", function() {
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild'); var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');
equals( parseInt(div.css("fontSize")), 16, "Verify fontSize px set." ); 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("fontSize")), 16, "Verify fontSize px set." );
equals( parseInt(child.css("font-size")), 16, "Verify fontSize px set." );
child.attr("class", "em"); child.attr("class", "em");
equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." ); equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment