Plato on Github
Report Home
dojo/testsDOH/_base/loader/hostenv_webworkers/worker3.js
Maintainability
77.26
Lines of code
25
Difficulty
7.20
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
// summary: // Test whether the require function loads modules as it should in async mode. var dojoConfig = { baseUrl: "../../../../../", async: true, packages: [{ name: "dojo", location: "dojo" }] }; importScripts("../../../../dojo.js", "console.js"); try{ require(["dojo/testsDOH/_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 }); }