Skip to content

Commit

Permalink
Core: Skip tests with no/falsy callbacks
Browse files Browse the repository at this point in the history
Gratuitous demonstration
  • Loading branch information
gibson042 committed Dec 9, 2014
1 parent 609ed37 commit c018044
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var totalTests,
testStart = 0,
testDone = 0,
log = 0,
isBrowser = typeof window !== "undefined" && window.document,
module1Context = {
name: "logs1",
tests: [
Expand Down Expand Up @@ -337,14 +338,8 @@ QUnit.done(function() {

QUnit.module( "deprecated log methods" );

QUnit.test( "QUnit.reset()", function( assert ) {

// Skip non-browsers
if ( typeof window === "undefined" || !window.document ) {
assert.expect( 0 );
return;
}

// Browser-only QUnit.reset test
QUnit.test( "QUnit.reset()", isBrowser && function( assert ) {
var myFixture = document.getElementById( "qunit-fixture" );

myFixture.innerHTML = "<em>something different from QUnit.config.fixture</em>";
Expand Down

0 comments on commit c018044

Please sign in to comment.