Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / dom / system / tests / test_pathutils_worker.xhtml
blobdc181ce07d42bc814fc41842b257bf32853b4ae6
1 <?xml version="1.0"?>
2 <!-- Any copyright is dedicated to the Public Domain.
3 - http://creativecommons.org/publicdomain/zero/1.0/ -->
4 <window title="Testing PathUtils on a chrome worker thread"
5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
6 onload="test();">
8 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
9 <script src="chrome://mochikit/content/tests/SimpleTest/WorkerHandler.js"></script>
11 <script type="application/javascript">
12 <![CDATA[
13 function test() {
14 SimpleTest.waitForExplicitFinish();
16 info("test_pathtuils_worker.xhtml: Starting test");
18 const worker = new ChromeWorker("pathutils_worker.js");
19 info("test_pathtuils_worker.xhtml: ChromeWorker created");
21 listenForTests(worker, { verbose: false });
22 worker.postMessage({
23 profileDir: PathUtils.profileDir,
24 localProfileDir: PathUtils.localProfileDir,
25 tempDir: PathUtils.tempDir,
26 });
28 info("test_pathtuils_worker.xhtml: Test running...");
30 ]]>
31 </script>
32 <body xmlns="https://www.w3.org/1999/xhtml">
33 <p id="display"></p>
34 <div id="content" style="display: none"></div>
35 <pre id="test"></pre>
36 </body>
37 <label id="test-result" />
38 </window>