Skip to content
Permalink
Browse files

Remove unnecessary haunted house guards.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Jun 7, 2012
1 parent d487b06 commit 79af1b457baf6e66fff831e7328e06f823445910
Showing with 3 additions and 8 deletions.
  1. +3 −8 test/unit/dimensions.js
@@ -1,4 +1,4 @@
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" );
});

}

0 comments on commit 79af1b4

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.