Commit 79af1b45 authored by Rick Waldron's avatar Rick Waldron

Remove unnecessary haunted house guards.

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent d487b06d
if ( jQuery.fn.width && jQuery.fn.height ) {
if ( jQuery.fn.width ) {
module("dimensions", { teardown: moduleTeardown });
......@@ -430,13 +430,8 @@ testIframe( "dimensions/documentSmall", "window vs. small document", function( j
testIframe( "dimensions/documentLarge", "window vs. large document", function( jQuery, window, document ) {
expect(2);
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);
}
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" );
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment