mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-24 14:13:43 +00:00
prevent qunit from running the suite until all the tests are defined
This commit is contained in:
parent
2b3153365f
commit
c5c89344ad
1 changed files with 8 additions and 0 deletions
|
|
@ -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 );
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue