]> source.dussan.org Git - jquery.git/commitdiff
Remove unnecessary haunted house guards.
authorRick Waldron <waldron.rick@gmail.com>
Thu, 7 Jun 2012 03:10:06 +0000 (23:10 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 7 Jun 2012 03:10:06 +0000 (23:10 -0400)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
test/unit/dimensions.js

index 377b6f83a31271e3bd4b538dfbb89a6eee21a5d1..53e37b95d540fce2081b7719b022aeba51db5f26 100644 (file)
@@ -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" );
 });
 
 }