summaryrefslogtreecommitdiffstats
path: root/dom/html/test/formData_worker.js
blob: 750522fbfaa8a867abd5d27686b0efe53a11c84f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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" });
  });
};