Backed out changeset 06f41c22f3a6 (bug 1888460) for causing linux xpcshell failures...
[gecko.git] / dom / workers / test / test_bug978260.html
blob056b8b6c72ef89f7ca2270a7c10de4a0d8afb3d1
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 DOM Worker Threads</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">
16 <script class="testbody" type="text/javascript">
18 SimpleTest.waitForExplicitFinish();
20 var xhr = new XMLHttpRequest();
21 xhr.onload = function () {
22 var worker = new Worker("bug978260_worker.js");
23 worker.onmessage = function(event) {
24 is(event.data, "loaded");
25 SimpleTest.finish();
29 xhr.open('GET', '/', false);
30 xhr.send();
32 </script>
33 </pre>
34 </body>
35 </html>