Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Partially revert af27eae841c3e1c01c46de72d676f1047e1ee375 - can't move reset around...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 7 Mar 2012 11:06:05 +0000 (12:06 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 7 Mar 2012 11:06:14 +0000 (12:06 +0100)
qunit/qunit.js

index e58cc4d..ebb34fa 100644 (file)
@@ -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");
 
@@ -228,6 +222,8 @@ Test.prototype = {
                        }
                }
 
+               QUnit.reset();
+
                runLoggingCallbacks( 'testDone', QUnit, {
                        name: this.testName,
                        module: this.module,

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf