aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-05 15:12:02 -0500
committerjeresig <jeresig@gmail.com>2009-12-05 15:12:02 -0500
commitaae0617c834a030902cd8da2714f852d6a1431be (patch)
tree45507dfa38ca727293e8d4c89b21ba089b4f230b /test/unit/css.js
parent6071e939c7025ff7096673c93eaa7e2d78afbb6b (diff)
downloadjquery-aae0617c834a030902cd8da2714f852d6a1431be.tar.gz
jquery-aae0617c834a030902cd8da2714f852d6a1431be.zip
Made sure that css() in IE handles negative non-px values correctly. Fixes #3331.
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index c199ca1eb..76274752e 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -59,13 +59,16 @@ test("css(String|Hash)", function() {
});
test("css(String, Object)", function() {
- expect(20);
+ expect(21);
ok( jQuery('#nothiddendiv').is(':visible'), 'Modifying CSS display: Assert element is visible');
jQuery('#nothiddendiv').css("display", 'none');
ok( !jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is hidden');
jQuery('#nothiddendiv').css("display", 'block');
ok( jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is visible');
+ jQuery("#nothiddendiv").css("top", "-1em");
+ ok( jQuery("#nothiddendiv").css("top"), -16, "Check negative number in EMs." );
+
jQuery('#floatTest').css('styleFloat', 'left');
equals( jQuery('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left');
jQuery('#floatTest').css('cssFloat', 'right');