]> source.dussan.org Git - jquery.git/commitdiff
No ticket: fix failure from zero-assertion test generating a second empty OL element...
authorRichard Gibson <richard.gibson@gmail.com>
Thu, 9 Aug 2012 14:42:09 +0000 (10:42 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 9 Aug 2012 14:42:09 +0000 (10:42 -0400)
test/unit/dimensions.js

index 8b03b9ffc9b9679db8408b52bb70751d1422e1c4..0b2e63600406b54ad5b41f440d5f43ee746b5fe5 100644 (file)
@@ -426,7 +426,9 @@ testIframe( "dimensions/documentSmall", "window vs. small document", function( j
                equal( jQuery( document ).height(), jQuery( window ).height(), "document height matches window height" );
                equal( jQuery( document ).width(), jQuery( window ).width(), "document width matches window width" );
        } else {
-               expect( 0 );
+               // all tests should have at least one assertion
+               expect( 1 );
+               ok( true, "skipping test (conditions not satisfied)" );
        }
 });