gecko-dev/dom/html/test/formData_worker.js
Nikhil Marathe 508af070e6 Bug 739173 - Support FormData in workers. r=khuey,baku
--HG--
extra : rebase_source : 2ddd847d280e3aede963c51ed525170d86eebd3c
2015-01-27 15:16:21 -08:00

20 lines
427 B
JavaScript

function ok(a, msg) {
postMessage({type: 'status', status: !!a, msg: a + ": " + msg });
}
function is(a, b, msg) {
postMessage({type: 'status', status: a === b, msg: a + " === " + b + ": " + msg });
}
function todo(a, msg) {
postMessage({type: 'todo', status: !!a, msg: a + ": " + msg });
}
importScripts("formData_test.js");
onmessage = function() {
runTest(function() {
postMessage({type: 'finish'});
});
}