gecko/dom/workers/test/fetch/worker_interfaces.js
Nikhil Marathe a255aa8f1c Bug 1017613 - Part 3 - fetch() IDL and stubs. r=baku
--HG--
extra : transplant_source : %B3%0A%E7%17m%5C%A5%DF%F4%1A%90Z%CF%B7%E2Y%CA%1E%21w
2014-07-24 18:30:07 -07:00

13 lines
475 B
JavaScript

function ok(a, msg) {
dump("OK: " + !!a + " => " + a + " " + msg + "\n");
postMessage({type: 'status', status: !!a, msg: a + ": " + msg });
}
onmessage = function() {
ok(typeof Headers === "function", "Headers should be defined");
ok(typeof Request === "function", "Request should be defined");
ok(typeof Response === "function", "Response should be defined");
ok(typeof fetch === "function", "fetch() should be defined");
postMessage({ type: 'finish' });
}