diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-11 15:11:03 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-11 15:11:03 -0400 |
commit | 22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca (patch) | |
tree | fa692f6b210a3a1d118cbab749e6d31e0e924496 /test | |
parent | 2866f16c09cce43044d721563a7bdbd9170fb494 (diff) | |
download | jquery-22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca.tar.gz jquery-22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca.zip |
Fixed getting styles from disconnected nodes. Fixes #7148.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 8a4909689..632464bcd 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1,7 +1,7 @@ module("css"); test("css(String|Hash)", function() { - expect(33); + expect(34); equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"'); @@ -19,6 +19,8 @@ test("css(String|Hash)", function() { equals( parseFloat(jQuery('#nothiddendiv').css('width')), width, 'Test negative width ignored') equals( parseFloat(jQuery('#nothiddendiv').css('height')), height, 'Test negative height ignored') + equals( jQuery('<div style="display: none;">').css('display'), 'none', 'Styles on disconnected nodes'); + jQuery('#floatTest').css({'float': 'right'}); equals( jQuery('#floatTest').css('float'), 'right', 'Modified CSS float using "float": Assert float is right'); jQuery('#floatTest').css({'font-size': '30px'}); |