aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
diff options
context:
space:
mode:
authorMatt Farmer <matt@frmr.me>2012-05-14 14:12:14 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-05-14 14:22:51 -0400
commitca48d490407b198e022b0d0294a7493602155f74 (patch)
treec635be5ffdf87b8e2ba1283ca6f81b9a43b31b78 /test/unit/dimensions.js
parent7778c7722239bf5b286e4d8f2740af9abe800c09 (diff)
downloadjquery-ca48d490407b198e022b0d0294a7493602155f74.tar.gz
jquery-ca48d490407b198e022b0d0294a7493602155f74.zip
Fix #6724, though the Mobile Safari wound remains. Closes gh-764.
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r--test/unit/dimensions.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 842072cd4..01135f1a1 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -9,7 +9,7 @@ function fn( val ) {
}
function testWidth( val ) {
- expect(8);
+ expect(9);
var $div = jQuery("#nothiddendiv");
$div.width( val(30) );
@@ -34,6 +34,8 @@ function testWidth( val ) {
equal( blah.width( val(10) ), blah, "Make sure that setting a width on an empty set returns the set." );
equal( blah.width(), null, "Make sure 'null' is returned on an empty set");
+ equal( jQuery(window).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." );
+
jQuery.removeData($div[0], "olddisplay", true);
}
@@ -63,7 +65,7 @@ test("width(Function(args))", function() {
});
function testHeight( val ) {
- expect(8);
+ expect(9);
var $div = jQuery("#nothiddendiv");
$div.height( val(30) );
@@ -88,6 +90,8 @@ function testHeight( val ) {
equal( blah.height( val(10) ), blah, "Make sure that setting a height on an empty set returns the set." );
equal( blah.height(), null, "Make sure 'null' is returned on an empty set");
+ equal( jQuery(window).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." );
+
jQuery.removeData($div[0], "olddisplay", true);
}