|
1 <?xml version="1.0"?> |
|
2 <!-- |
|
3 Any copyright is dedicated to the Public Domain. |
|
4 http://creativecommons.org/publicdomain/zero/1.0/ |
|
5 --> |
|
6 <window title="Testing OS.File on a chrome worker thread" |
|
7 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
8 onload="test();"> |
|
9 |
|
10 <script type="application/javascript" |
|
11 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> |
|
12 <script type="application/javascript" |
|
13 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/> |
|
14 <script type="application/javascript" |
|
15 src="worker_handler.js"/> |
|
16 <script type="application/javascript"> |
|
17 <![CDATA[ |
|
18 |
|
19 let worker; |
|
20 let main = this; |
|
21 |
|
22 function test() { |
|
23 info("test_osfile_front.xul: Starting test"); |
|
24 |
|
25 // Test the OS.File worker |
|
26 |
|
27 worker = new ChromeWorker("worker_test_osfile_front.js"); |
|
28 SimpleTest.waitForExplicitFinish(); |
|
29 info("test_osfile_front.xul: Chrome worker created"); |
|
30 dump("MAIN: go\n"); |
|
31 worker_handler(worker); |
|
32 worker.postMessage(0); |
|
33 ok(true, "test_osfile_front.xul: Test in progress"); |
|
34 }; |
|
35 ]]> |
|
36 </script> |
|
37 |
|
38 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
39 <p id="display"></p> |
|
40 <div id="content" style="display:none;"></div> |
|
41 <pre id="test"></pre> |
|
42 </body> |
|
43 <label id="test-result"/> |
|
44 </window> |