aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-11 15:11:03 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-11 15:11:03 -0400
commit22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca (patch)
treefa692f6b210a3a1d118cbab749e6d31e0e924496 /test
parent2866f16c09cce43044d721563a7bdbd9170fb494 (diff)
downloadjquery-22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca.tar.gz
jquery-22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca.zip
Fixed getting styles from disconnected nodes. Fixes #7148.
Diffstat (limited to 'test')
-rw-r--r--test/unit/css.js4
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'});