Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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 <!--
8 Tests of DOM Worker Threads XHR(Bug 450452 )
9 -->
10 <head>
11 <title>Test for DOM Worker Threads XHR (Bug 450452 )</title>
12 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
13 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
14 </head>
15 <body>
16 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=450452">DOM Worker Threads XHR (Bug 450452)</a>
17 <p id="display"></p>
18 <div id="content" style="display: none">
20 </div>
21 <pre id="test">
22 <script class="testbody" type="text/javascript">
24 var worker = new Worker("xhr2_worker.js");
26 worker.onmessage = function(event) {
27 is(event.data, "done", "Got correct result");
28 SimpleTest.finish();
29 }
30 worker.postMessage("testXHR.txt");
32 SimpleTest.waitForExplicitFinish();
34 </script>
35 </pre>
36 </body>
37 </html>