summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/rvals_worker.js
blob: 221d70144362961d1ca157a8b2244d218d76e41a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
onmessage = function (evt) {
  postMessage(postMessage("ignore") == undefined);

  var id = setInterval(function () {}, 200);
  postMessage(clearInterval(id) == undefined);

  id = setTimeout(function () {}, 200);
  postMessage(clearTimeout(id) == undefined);

  postMessage(dump(42 + "\n") == undefined);

  postMessage("finished");
};