Bug 1885602 - Part 2: Add a MozillaAccountMenuButton composable for the menu redesign...
[gecko.git] / dom / xhr / tests / worker_temporaryFileBlob.js
blob056b826e0079a658a58247f649f224cee9a1eda0
1 /* eslint-env worker */
3 /* eslint-disable mozilla/no-comparison-or-assignment-inside-ok */
5 importScripts("common_temporaryFileBlob.js");
7 function info(msg) {
8   postMessage({ type: "info", msg });
11 function ok(a, msg) {
12   postMessage({ type: "check", what: !!a, msg });
15 function is(a, b, msg) {
16   ok(a === b, msg);
19 function next() {
20   postMessage({ type: "finish" });
23 onmessage = function (e) {
24   if (e.data == "simple") {
25     test_simple();
26   } else if (e.data == "abort") {
27     test_abort();
28   } else if (e.data == "reuse") {
29     test_reuse();
30   } else {
31     ok(false, "Something wrong happened");
32   }