Bug 1833753 [wpt PR 40065] - Allow newly-added test to also pass when mutation events...
[gecko.git] / testing / mochitest / harness.xhtml
blobe5fec05fe8b5a2dcc8d02843d9ae1dc9b03359db
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/static/harness.css"
4 type="text/css"?>
6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7 title="Chrome Test Harness"
8 directory="chrome">
10 <script src="chrome://mochikit/content/tests/SimpleTest/LogController.js"/>
11 <script src="chrome://mochikit/content/tests/SimpleTest/MemoryStats.js"/>
12 <script src="chrome://mochikit/content/tests/SimpleTest/TestRunner.js"/>
13 <script src="chrome://mochikit/content/tests/SimpleTest/MozillaLogger.js"/>
14 <script src="chrome://mochikit/content/chrome-harness.js" />
15 <script src="chrome://mochikit/content/chunkifyTests.js" />
16 <script src="chrome://mochikit/content/manifestLibrary.js" />
17 <script src="chrome://mochikit/content/tests/SimpleTest/setup.js" />
18 <script type="application/javascript"><![CDATA[
20 function loadTests()
22 window.removeEventListener("load", loadTests);
23 getTestList({}, linkAndHookup);
26 function linkAndHookup(links) {
27 // load server.js in so we can share template functions
28 var srvScope = {};
29 Services.scriptloader.loadSubScript('chrome://mochikit/content/server.js',
30 srvScope);
32 // generate our test list
33 srvScope.makeTags();
34 var tableContent = srvScope.linksToTableRows(links, 0);
36 function populate() {
37 // eslint-disable-next-line no-unsanitized/property
38 document.getElementById("test-table").innerHTML += tableContent;
40 gTestList = JSON.parse(srvScope.jsonArrayOfTestFiles(links));
41 populate();
43 hookup();
46 window.addEventListener("load", loadTests);
47 ]]>
48 </script>
50 <vbox>
51 <button label="Run Chrome Tests" id="runtests" flex="1"/>
53 <body xmlns="http://www.w3.org/1999/xhtml" id="xulharness">
54 <!--TODO: this should be separated into a file that both this file and server.js uses-->
55 <div class="container">
56 <p style="float:right;">
57 <small>Based on the MochiKit unit tests.</small>
58 </p>
59 <div class="status">
60 <h1 id="indicator">Status</h1>
61 <h2 id="pass">Passed: <span id="pass-count">0</span></h2>
62 <h2 id="fail">Failed: <span id="fail-count">0</span></h2>
63 <h2 id="fail">Todo: <span id="todo-count">0</span></h2>
64 </div>
65 <div class="clear"></div>
66 <div id="current-test">
67 <b>Currently Executing: <span id="current-test-path">_</span></b>
68 </div>
69 <div class="clear"></div>
70 <div class="frameholder">
71 <iframe type="content" id="testframe" width="550" height="350"></iframe>
72 </div>
73 <div class="clear"></div>
74 <div class="toggle">
75 <a href="#" id="toggleNonTests">Show Non-Tests</a>
76 <br />
77 </div>
78 <div id="wrapper">
79 <table cellpadding="0" cellspacing="0">
80 <!-- tbody needed to avoid bug 494546 causing performance problems -->
81 <tbody id="test-table">
82 <tr>
83 <td>Passed</td>
84 <td>Failed</td>
85 <td>Todo</td>
86 <td>Test Files</td>
87 </tr>
88 </tbody>
89 </table>
90 <br/>
91 <table cellpadding="0" cellspacing="0" border="1" bordercolor="red">
92 <!-- tbody needed to avoid bug 494546 causing performance problems -->
93 <tbody id="fail-table">
94 </tbody>
95 </table>
96 </div>
97 </div>
98 </body>
99 </vbox>
100 </window>