diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2012-06-06 23:10:06 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-06-06 23:10:06 -0400 |
commit | 79af1b457baf6e66fff831e7328e06f823445910 (patch) | |
tree | e327466c03eb0d9ff616556b250c704684ee978d /test/unit | |
parent | d487b06d93a576e66b81a0620207f083712268d1 (diff) | |
download | jquery-79af1b457baf6e66fff831e7328e06f823445910.tar.gz jquery-79af1b457baf6e66fff831e7328e06f823445910.zip |
Remove unnecessary haunted house guards.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/dimensions.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 377b6f83a..53e37b95d 100644 --- a/test/unit/dimensions.js +++ b/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" ); }); } |