Skip to content

Commit

Permalink
Partially revert af27eae - can't move reset around, so also don't wra…
Browse files Browse the repository at this point in the history
…p in try-catch, as the result of that is effectively swallowed. Can't output the result as the outputting is already done.
  • Loading branch information
jzaefferer committed Mar 7, 2012
1 parent af27eae commit 577b5a9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions qunit/qunit.js
Expand Up @@ -143,12 +143,6 @@ Test.prototype = {
QUnit.pushFailure( "Expected at least one assertion, but none were run - call expect(0) to accept zero assertions." );
}

try {
QUnit.reset();
} catch(e) {
QUnit.pushFailure( "reset() failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) );
}

var good = 0, bad = 0,
tests = id("qunit-tests");

Expand Down Expand Up @@ -228,6 +222,8 @@ Test.prototype = {
}
}

QUnit.reset();

runLoggingCallbacks( 'testDone', QUnit, {
name: this.testName,
module: this.module,
Expand Down

0 comments on commit 577b5a9

Please sign in to comment.