summaryrefslogtreecommitdiffstats
path: root/dom/reporting/tests/worker_deprecated.js
blob: 934efaa57ad4acf556795cac26d9dbcf008905c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* eslint-disable no-undef */
/* eslint-disable mozilla/no-comparison-or-assignment-inside-ok */

// eslint-disable-next-line no-unused-vars
function ok(a, msg) {
  postMessage({ type: "check", check: !!a, msg });
}

// eslint-disable-next-line no-unused-vars
function is(a, b, msg) {
  ok(a === b, msg);
}

// eslint-disable-next-line no-unused-vars
function info(msg) {
  postMessage({ type: "info", msg });
}

function finish() {
  postMessage({ type: "finish" });
}

importScripts("common_deprecated.js");

test_deprecatedInterface()
  .then(() => test_deprecatedMethod())
  .then(() => test_deprecatedAttribute())
  .then(() => test_takeRecords())
  .then(() => finish());