2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"chrome://mochikit/content/static/harness.css"
6 <window xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7 title=
"Chrome Test Harness"
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/mochitestListingsUtils.js" />
18 <script src=
"chrome://mochikit/content/tests/SimpleTest/setup.js" />
19 <script type=
"application/javascript"><![CDATA[
23 window.removeEventListener(
"load", loadTests);
24 getTestList({}, linkAndHookup);
27 function linkAndHookup(links) {
28 // generate our test list
30 var tableContent = linksToTableRows(links,
0);
33 // eslint-disable-next-line no-unsanitized/property
34 document.getElementById(
"test-table").innerHTML += tableContent;
36 gTestList = JSON.parse(jsonArrayOfTestFiles(links));
42 window.addEventListener(
"load", loadTests);
47 <button label=
"Run Chrome Tests" id=
"runtests" flex=
"1"/>
49 <body xmlns=
"http://www.w3.org/1999/xhtml" id=
"xulharness">
50 <!--TODO: this should be separated into a file that both this file and server.js uses-->
51 <div class=
"container">
52 <p style=
"float:right;">
53 <small>Based on the MochiKit unit tests.
</small>
56 <h1 id=
"indicator">Status
</h1>
57 <h2 id=
"pass">Passed:
<span id=
"pass-count">0</span></h2>
58 <h2 id=
"fail">Failed:
<span id=
"fail-count">0</span></h2>
59 <h2 id=
"fail">Todo:
<span id=
"todo-count">0</span></h2>
61 <div class=
"clear"></div>
62 <div id=
"current-test">
63 <b>Currently Executing:
<span id=
"current-test-path">_
</span></b>
65 <div class=
"clear"></div>
66 <div class=
"frameholder">
67 <iframe type=
"content" id=
"testframe" width=
"550" height=
"350"></iframe>
69 <div class=
"clear"></div>
71 <a href=
"#" id=
"toggleNonTests">Show Non-Tests
</a>
75 <table cellpadding=
"0" cellspacing=
"0">
76 <!-- tbody needed to avoid bug 494546 causing performance problems -->
77 <tbody id=
"test-table">
87 <table cellpadding=
"0" cellspacing=
"0" border=
"1" bordercolor=
"red">
88 <!-- tbody needed to avoid bug 494546 causing performance problems -->
89 <tbody id=
"fail-table">