prevent qunit from running the suite until all the tests are defined

This commit is contained in:
John Bender 2011-08-12 14:41:45 -07:00
parent 2b3153365f
commit c5c89344ad

View file

@ -52,10 +52,18 @@ $(function() {
self.$frameElem.attr( "src", template.replace("{{testdir}}", dir) );
});
});
// having defined all suite level tests let QUnit run
QUnit.start();
}
});
};
// prevent qunit from starting the test suite until all tests are defined
QUnit.begin = function( ) {
this.config.autostart = false;
};
// get the test directories
$.get( "ls.php", (new Runner()).exec );
});