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/tests/SimpleTest/setup.js" />
18 <script type=
"application/javascript"><![CDATA[
22 window.removeEventListener(
"load", loadTests);
23 getTestList({}, linkAndHookup);
26 function linkAndHookup(links) {
27 // load server.js in so we can share template functions
29 Services.scriptloader.loadSubScript('chrome://mochikit/content/server.js',
32 // generate our test list
34 var tableContent = srvScope.linksToTableRows(links,
0);
37 // eslint-disable-next-line no-unsanitized/property
38 document.getElementById(
"test-table").innerHTML += tableContent;
40 gTestList = JSON.parse(srvScope.jsonArrayOfTestFiles(links));
46 window.addEventListener(
"load", loadTests);
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>
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>
65 <div class=
"clear"></div>
66 <div id=
"current-test">
67 <b>Currently Executing:
<span id=
"current-test-path">_
</span></b>
69 <div class=
"clear"></div>
70 <div class=
"frameholder">
71 <iframe type=
"content" id=
"testframe" width=
"550" height=
"350"></iframe>
73 <div class=
"clear"></div>
75 <a href=
"#" id=
"toggleNonTests">Show Non-Tests
</a>
79 <table cellpadding=
"0" cellspacing=
"0">
80 <!-- tbody needed to avoid bug 494546 causing performance problems -->
81 <tbody id=
"test-table">
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">