uupaa.webintent.js
Version:
WebIntent implement
29 lines (20 loc) • 751 B
JavaScript
// WebIntent test
onmessage = function(event) {
self.unitTest = event.data; // { message, setting: { secondary, baseDir } }
if (!self.console) { // polyfill WebWorkerConsole
self.console = function() {};
self.console.dir = function() {};
self.console.log = function() {};
self.console.warn = function() {};
self.console.error = function() {};
self.console.table = function() {};
}
importScripts("../lib/WebModule.js");
// publish to global
WebModule.publish = true;
importScripts("wmtools.js");
importScripts("../lib/WebIntent.js");
importScripts("../release/WebIntent.w.min.js");
importScripts("testcase.js");
self.postMessage(self.unitTest);
};