diff options
author | Corey Frang <gnarf@gnarf.net> | 2012-04-23 15:05:12 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-04-23 15:05:12 -0400 |
commit | 58ed62ed12cb48d9224f699e86e197804ca5ece4 (patch) | |
tree | 9acdcb4ccb6e4ef4d2d20b887b82a476aa3e8e47 /test/unit/css.js | |
parent | 8ad22a2b152f55b12385b126305383e2c5ba1994 (diff) | |
download | jquery-58ed62ed12cb48d9224f699e86e197804ca5ece4.tar.gz jquery-58ed62ed12cb48d9224f699e86e197804ca5ece4.zip |
Effects: 1.8 Animation Rewrite - thanks @mikesherov and @gibson042
Diffstat (limited to 'test/unit/css.js')
-rw-r--r-- | test/unit/css.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 6d0b39f81..a192c1b5b 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -37,13 +37,13 @@ test("css(String|Hash)", function() { div2.remove(); - // handle negative numbers by ignoring #1599, #4216 + // handle negative numbers by setting to zero #11604 jQuery("#nothiddendiv").css( {width: 1, height: 1} ); var width = parseFloat(jQuery("#nothiddendiv").css("width")), height = parseFloat(jQuery("#nothiddendiv").css("height")); jQuery("#nothiddendiv").css({ width: -1, height: -1 }); - equal( parseFloat(jQuery("#nothiddendiv").css("width")), width, "Test negative width ignored"); - equal( parseFloat(jQuery("#nothiddendiv").css("height")), height, "Test negative height ignored"); + equal( parseFloat(jQuery("#nothiddendiv").css("width")), 0, "Test negative width set to 0"); + equal( parseFloat(jQuery("#nothiddendiv").css("height")), 0, "Test negative height set to 0"); equal( jQuery("<div style='display: none;'>").css("display"), "none", "Styles on disconnected nodes"); |