From ba6372d968447c2ca983f6afbf9e2a58de6dc9b8 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 9 Aug 2012 10:42:09 -0400 Subject: [PATCH] No ticket: fix failure from zero-assertion test generating a second empty OL element. Closes gh-888 --- test/unit/dimensions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)" ); } }); -- 2.39.5