From: Richard Gibson Date: Thu, 9 Aug 2012 14:42:09 +0000 (-0400) Subject: No ticket: fix failure from zero-assertion test generating a second empty OL element... X-Git-Tag: 1.8.0~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba6372d968447c2ca983f6afbf9e2a58de6dc9b8;p=jquery.git No ticket: fix failure from zero-assertion test generating a second empty OL element. Closes gh-888 --- diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 8b03b9ffc..0b2e63600 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -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)" ); } });