Permalink
Browse files

No ticket: fix failure from zero-assertion test generating a second e…

…mpty OL element. Closes gh-888
  • Loading branch information...
1 parent 1d8bf0a commit ba6372d968447c2ca983f6afbf9e2a58de6dc9b8 @gibson042 gibson042 committed with rwaldron Aug 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/dimensions.js
View
@@ -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)" );
}
});

0 comments on commit ba6372d

Please sign in to comment.