Skip to content

Commit ba6372d

Browse files
gibson042rwaldron
authored andcommitted
No ticket: fix failure from zero-assertion test generating a second empty OL element. Closes jquerygh-888
1 parent 1d8bf0a commit ba6372d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/dimensions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,9 @@ testIframe( "dimensions/documentSmall", "window vs. small document", function( j
426426
equal( jQuery( document ).height(), jQuery( window ).height(), "document height matches window height" );
427427
equal( jQuery( document ).width(), jQuery( window ).width(), "document width matches window width" );
428428
} else {
429-
expect( 0 );
429+
// all tests should have at least one assertion
430+
expect( 1 );
431+
ok( true, "skipping test (conditions not satisfied)" );
430432
}
431433
});
432434

0 commit comments

Comments
 (0)