aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-09 20:51:58 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-09 20:51:58 -0800
commit4e9fed3b16ed9612ed373d14a89294e98054f4dd (patch)
treec53571147674a626b72e40b15f010e85925d2899 /test
parent6bec6199c255b4fd3fa11b4682d97f2d0658ea4d (diff)
downloadjquery-4e9fed3b16ed9612ed373d14a89294e98054f4dd.tar.gz
jquery-4e9fed3b16ed9612ed373d14a89294e98054f4dd.zip
Made sure that css('width') and height returned string values, not numerical values. Fixes #5627.
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 76274752e..5e88254d7 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1,7 +1,7 @@
module("css");
test("css(String|Hash)", function() {
- expect(27);
+ expect(28);
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
@@ -56,6 +56,8 @@ test("css(String|Hash)", function() {
}
equals( prctval, checkval, "Verify fontSize % set." );
+
+ equals( typeof child.css("width"), "string", "Make sure that a string width is returned from css('width')." );
});
test("css(String, Object)", function() {