summaryrefslogtreecommitdiffstats
path: root/dom/html/test/formData_worker.js
blob: f1fee5baa1b48aef30f5180245c396f606ec42d9 (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" });
  });
};