Refactored and fixed test suite to run async tests
[jquery.git] / build / test / data / testrunner.js
index db97215..11921f9 100644 (file)
@@ -50,8 +50,8 @@ function runTest(tests) {
 }
 
 function test(name, callback) {
-       Test = [];
        synchronize(function() {
+               Test = [];
                try {
                        callback();
                } catch(e) {