diff options
author | Jason Merino <jasonmerino@gmail.com> | 2013-06-28 16:08:16 -0700 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-07-01 19:58:39 +0200 |
commit | ec6eb38c64aadd6860c402cc0894c77b82b1a65d (patch) | |
tree | cce1ab375af4cb3f18ef58fc110a0a711d230ed3 /test | |
parent | d139732a166f2c9b4ca3cafd9ee2974fe0c4f283 (diff) | |
download | jquery-ec6eb38c64aadd6860c402cc0894c77b82b1a65d.tar.gz jquery-ec6eb38c64aadd6860c402cc0894c77b82b1a65d.zip |
Fixes #14049: don't append px to CSS order value. Close gh-1300.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index b48b52982..297fbeca0 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -111,7 +111,7 @@ test("css(String|Hash)", function() { }); test("css() explicit and relative values", function() { - expect(29); + expect( 30 ); var $elem = jQuery("#nothiddendiv"); $elem.css({ "width": 1, "height": 1, "paddingLeft": "1px", "opacity": 1 }); @@ -196,6 +196,9 @@ test("css() explicit and relative values", function() { $elem.css( "opacity", "+=0.5" ); equal( $elem.css("opacity"), "1", "'+=0.5' on opacity (params)" ); + + $elem.css( "order", 2 ); + equal( $elem.css("order"), "2", "2 on order" ); }); test("css(String, Object)", function() { |