Skip to content

Commit 79af1b4

Browse files
committed
Remove unnecessary haunted house guards.
Signed-off-by: Rick Waldron <[email protected]>
1 parent d487b06 commit 79af1b4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/unit/dimensions.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if ( jQuery.fn.width && jQuery.fn.height ) {
1+
if ( jQuery.fn.width ) {
22

33
module("dimensions", { teardown: moduleTeardown });
44

@@ -430,13 +430,8 @@ testIframe( "dimensions/documentSmall", "window vs. small document", function( j
430430
testIframe( "dimensions/documentLarge", "window vs. large document", function( jQuery, window, document ) {
431431
expect(2);
432432

433-
if ( jQuery.fn.height && jQuery.fn.width ) {
434-
expect(2);
435-
ok( jQuery( document ).height() > jQuery( window ).height(), "document height is larger than window height" );
436-
ok( jQuery( document ).width() > jQuery( window ).width(), "document width is larger than window width" );
437-
} else {
438-
expect(0);
439-
}
433+
ok( jQuery( document ).height() > jQuery( window ).height(), "document height is larger than window height" );
434+
ok( jQuery( document ).width() > jQuery( window ).width(), "document width is larger than window width" );
440435
});
441436

442437
}

0 commit comments

Comments
 (0)