summaryrefslogtreecommitdiffstats
path: root/dom/reporting/tests/worker_deprecated.js
blob: f6b57896f6fd427e90617024e63eff1bc2a848d9 (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
/* eslint-disable no-undef */

// 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());