can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
28 lines (24 loc) • 530 B
JavaScript
// summary:
// Test whether the require function loads modules as it should.
var dojoConfig = {
baseUrl: "../../../../../",
packages: [{
name: "dojo", location: "dojo"
}]
};
importScripts("../../../../dojo.js", "console.js");
try{
require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){
self.postMessage({
type: "testResult",
test: "require is working",
value: true
});
});
}catch(e){
self.postMessage({
type: "testResult",
test: "require is working",
value: false
});
}