aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-10-22 02:39:06 -0400
committerjeresig <jeresig@gmail.com>2010-10-22 02:39:06 -0400
commit53396b879bd29c090824da182e3cf69158829f82 (patch)
treea273c7b167f177b3ba63c0934a16ce80bf5628c7 /test
parent7e02cee5ff8b5e9117366d7b43af7b5794f0f258 (diff)
downloadjquery-53396b879bd29c090824da182e3cf69158829f82.tar.gz
jquery-53396b879bd29c090824da182e3cf69158829f82.zip
Make sure that .width()/.height() don't return NaN also standardize on returning instead of auto for default values (which is what we do elsewhere in .css() as well). Fixes #7225.
Diffstat (limited to 'test')
-rw-r--r--test/unit/css.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 2c2e9ed21..9c262af97 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -13,8 +13,8 @@ test("css(String|Hash)", function() {
var div = jQuery( "<div>" );
- equals( div.css("width") || "auto", "auto", "Width on disconnected node." );
- equals( div.css("height") || "auto", "auto", "Height on disconnected node." );
+ equals( div.css("width"), "", "Width on disconnected node." );
+ equals( div.css("height"), "", "Height on disconnected node." );
div.css({ width: 4, height: 4 });