Forward progress, need to resolve script loading timing

This commit is contained in:
Nathan Leniz
2015-02-14 17:28:07 -05:00
parent fb971ab080
commit 693b8fbb33
3 changed files with 15 additions and 16 deletions

View File

@@ -8,11 +8,14 @@
try {
eval(tests[i]);
} catch (err) {
parent.postError(err);
allTestsGood = false;
console.log('All tests are good?', allTestsGood);
parent.postError(err);
} finally {
if (allTestsGood) {
parent.postMessage('CompleteAwesomeSauce', parent.nodeEnv);
console.log('You should not be able to see me if there are errors on teh screen!', allTestsGood);
parent.postSuccess();
}
}
}