Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / url / tests / test_worker_protocol.html
blob1687159d6a28ff73bc1a41e964db15398c932bb7
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <!DOCTYPE HTML>
6 <html>
7 <head>
8 <title>Test for URL protocol setter in workers</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <p id="display"></p>
14 <div id="content" style="display: none"></div>
15 <pre id="test"></pre>
16 <script class="testbody" type="text/javascript">
18 let worker = new Worker("protocol_worker.js");
20 worker.onmessage = function(event) {
21 is(event.target, worker, "Correct worker");
23 if (event.data.type == "finish") {
24 SimpleTest.finish();
25 return;
28 if (event.data.type == "status") {
29 ok(event.data.status, event.data.msg);
30 return;
33 ok(false, "Invalid message.");
36 SimpleTest.waitForExplicitFinish();
38 </script>
39 </pre>
40 </body>
41 </html>