Wait for bundled file updates to complete before running tests

This commit is contained in:
Simon Kornblith 2015-03-11 13:18:11 -04:00
parent 6a05e5c04b
commit 3583793571
6 changed files with 14 additions and 5 deletions

View file

@ -108,6 +108,8 @@ if(ZoteroUnit.tests) {
if(run) {
window.onload = function() {
mocha.run();
Zotero.Schema.schemaUpdatePromise.then(function() {
mocha.run();
}).done();
};
}