Fix #6724, though the Mobile Safari wound remains. Closes gh-764.

This commit is contained in:
Matt Farmer
2012-05-14 14:12:14 -04:00
committed by Dave Methvin
parent 7778c77222
commit ca48d49040
2 changed files with 11 additions and 8 deletions

View File

@@ -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);
}