diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 04411c3192..4a9dd0b420 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -430,8 +430,13 @@ testIframe( "dimensions/documentSmall", "window vs. small document", function( j testIframe( "dimensions/documentLarge", "window vs. large document", function( jQuery, window, document ) { expect(2); - ok( jQuery( document ).height() > jQuery( window ).height(), "document height is larger than window height" ); - ok( jQuery( document ).width() > jQuery( window ).width(), "document width is larger than window width" ); + if ( jQuery.fn.height && jQuery.fn. width ) { + expect(2); + ok( jQuery( document ).height() > jQuery( window ).height(), "document height is larger than window height" ); + ok( jQuery( document ).width() > jQuery( window ).width(), "document width is larger than window width" ); + } else { + expect(0); + } }); }