formData_worker.js (450B)
1 function ok(a, msg) { 2 postMessage({ type: "status", status: !!a, msg: a + ": " + msg }); 3 } 4 5 function is(a, b, msg) { 6 postMessage({ 7 type: "status", 8 status: a === b, 9 msg: a + " === " + b + ": " + msg, 10 }); 11 } 12 13 function todo(a, msg) { 14 postMessage({ type: "todo", status: !!a, msg: a + ": " + msg }); 15 } 16 17 importScripts("formData_test.js"); 18 19 onmessage = function () { 20 runTest(function () { 21 postMessage({ type: "finish" }); 22 }); 23 };