diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-08-09 10:42:09 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-08-09 10:42:09 -0400 |
commit | ba6372d968447c2ca983f6afbf9e2a58de6dc9b8 (patch) | |
tree | 854e4711d0c55ca531ffbb412cbb738f12a2882e /test/unit/dimensions.js | |
parent | 1d8bf0a2b57fd429c600aab5b150b2a04b87e451 (diff) | |
download | jquery-ba6372d968447c2ca983f6afbf9e2a58de6dc9b8.tar.gz jquery-ba6372d968447c2ca983f6afbf9e2a58de6dc9b8.zip |
No ticket: fix failure from zero-assertion test generating a second empty OL element. Closes gh-888
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r-- | test/unit/dimensions.js | 4 |
1 files changed, 3 insertions, 1 deletions
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)" ); } }); |