loader_template.js revision 44603c2c426a25554a71a64dffed3f0c84d20d19
/*
* This file was assembled by ../scripts/build_loader_tests.js
*/
//This is a hack for global modules in npm 1.0
//Generic Async Wait
var count = 0;
return function(data) {
var loaded = false;
var w = function() {
if (count === 1000) {
throw new Error('Async Timer reached 1000 iterations..');
}
count++;
if (!loaded) {
this.wait(w, 10);
}
};
var next = function() {
loaded = true;
};
this.wait(w, 10);
};
};
/*
* !! TESTCASE !! will be replaced with a JSON object by the parent script.
*/