UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

29 lines (25 loc) 561 B
// 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 }); }