summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/fetch/worker_temporaryFileBlob.js
blob: 182dc7c18b2f3da732a428eba3b9c795f37dd998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
importScripts('common_temporaryFileBlob.js');

function info(msg) {
  postMessage({type: 'info', msg: msg});
}

function ok(a, msg) {
  postMessage({type: 'check', what: !!a, msg: msg});
}

function is(a, b, msg) {
  ok(a === b, msg);
}

function next() {
  postMessage({type: 'finish'});
}

onmessage = function(e) {
  test_basic();
}