3
NOTE: we are INTENTIONALLY in quirks mode. It makes it much easier to
4
get a "full screen" UI w/ straightforward CSS.
7
// TODO: provide a UI for prompted tests
10
<title>almond Tests Via The Dojo Unit Test Harness, $Rev: 20149 $</title>
12
<script type="text/javascript">
13
// workaround for bug in Safari 3. See #7189
14
if (/3[\.0-9]+ Safari/.test(navigator.appVersion))
17
origConsole: window.console,
19
this.origConsole.log(s);
22
this.origConsole.info(s);
25
this.origConsole.error(s);
28
this.origConsole.warn(s);
34
<script type="text/javascript">
35
window.dojoUrl = "../../dojo/dojo.js";
37
window.testModule = "";
39
// parse out our test URL and our Dojo URL from the query string
40
var qstr = window.location.search.substr(1);
42
var qparts = qstr.split("&");
43
for(var x=0; x<qparts.length; x++){
44
var tp = qparts[x].split("=");
45
if(tp[0] == "dojoUrl"){
46
window.dojoUrl = tp[1];
48
if(tp[0] == "testUrl"){
49
window.testUrl = tp[1];
51
if(tp[0] == "testModule"){
52
window.testModule = tp[1];
54
if(tp[0] == "registerModulePath"){
55
var modules = tp[1].split(";");
56
window.registerModulePath=[];
57
for (var i=0; i<modules.length;i++){
58
window.registerModulePath.push(modules[i].split(","));
64
//document.write("<scr"+"ipt type='text/javascript' djConfig='isDebug: true' src='"+dojoUrl+"'></scr"+"ipt>");
66
<script type="text/javascript" src="runner.js"></script>
67
<script type="text/javascript" src="_browserRunner.js"></script>
69
<script type="text/javascript">
71
document.write("<scr"+"ipt type='text/javascript' src='"+testUrl+".js'></scr"+"ipt>");
74
<style type="text/css">
75
/* @import "../../dojo/resources/dojo.css"; */
82
font-family: Myriad, Lucida Grande, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
90
font-family: Myriad, Lucida Grande, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
99
border-collapse: collapse;
109
border: 1px solid black;
117
border: 1px solid black;
119
background-color: #DEDEDE;
132
font-family: Monaco, monospace;
138
background:#e9e9e9 url("http://o.aolcdn.com/dojo/1.3/dijit/themes/tundra/images/dojoTundraGradientBg.png") repeat-x 0 0;
140
/*the following trick is necessary to prevent IE from wrapping the last piece of progress bar into a new line*/
145
border-color: #e8e8e8;
149
#progressOuter .success, #progressOuter .failure{
157
border: 1px solid #DEDEDE;
159
padding-right: 0.5em;
163
border: 1px solid #DEDEDE;
167
border-width: 1px 1px 0px 1px;
169
border-color: #DEDEDE;
175
border: 1px solid black;
184
border-collapse: collapse;
191
border-bottom: 1px solid #DEDEDE;
192
border-right : 1px solid #DEDEDE;
197
border-bottom: 1px solid #DEDEDE;
198
border-right : 1px solid #DEDEDE;
210
background-color: #DEDEDE;
218
background-color: #85afde;
222
background-color: #7cdea7;
226
background-color: #de827b;
231
<table id="testLayout" cellpadding="0" cellspacing="0" style="margin: 0;">
232
<tr valign="top" height="40">
233
<td colspan="2" id="logoBar">
234
<h3 style="margin: 5px 5px 0px 5px; float: left;">almond Tests Via D.O.H.: The Dojo Objective Harness</h3>
235
<img src="small_logo.png" height="40" style="margin: 0px 5px 0px 5px; float: right;">
236
<span style="margin: 10px 5px 0px 5px; float: right;">
237
<input type="checkbox" id="audio" name="audio">
238
<label for="audio">sounds?</label>
242
<tr valign="top" height="10">
243
<td colspan="2"><div id="progressOuter" onclick="doh._jumpToSuite(arguments[0]);"></div></td>
245
<tr valign="top" height="30">
246
<td width="30%" class="header">
247
<span id="toggleButtons" onclick="doh.togglePaused();">
248
<button id="play">►</button>
249
<button id="pause" style="display: none;">║</button>
251
<span id="runningStatus">
252
<span id="pausedMsg">Stopped</span>
253
<span id="playingMsg" style="display: none;">Tests Running</span>
256
<td width="*" class="header" valign="bottom">
257
<button class="tab" onclick="doh.showTestPage();">Test Page</button>
258
<button class="tab" onclick="doh.showLogPage();">Log</button>
259
<button class="tab" onclick="doh.showPerfTestsPage();">Performance Tests Results</button>
262
<tr valign="top" style="border: 0; padding: 0; margin: 0;">
263
<td height="100%" style="border: 0; padding: 0; margin: 0;">
264
<div id="testListContainer">
265
<table cellpadding="0" cellspacing="0" border="0"
266
width="100%" id="testList" style="margin: 0;" onclick="doh._jumpToLog(arguments[0]);">
268
<tr id="testListHeader" style="border: 0; padding: 0; margin: 0;" >
271
<input type="checkbox" checked
272
onclick="doh.toggleRunAll();">
274
<th width="*" style="text-align: left;">test</th>
275
<th width="50">time</th>
279
<tr id="groupTemplate" style="display: none;">
280
<td style="font-family: Arial; width: 15px;">►</td>
282
<input type="checkbox" checked>
287
<tr id="testTemplate" style="display: none;">
290
<td style="padding-left: 20px;">test name</td>
298
<div style="position: relative; width: 99%; height: 100%; top: 0px; left: 0px;">
301
<pre id="logBody"></pre>
302
<div id="perfTestsBody" style="background-color: white;"></div>
304
<iframe id="testBody" class="tabBody"
305
style="z-index: -1;"></iframe>
307
src="http://redesign.dojotoolkit.org"></iframe>
313
<span id="hiddenAudio"></span>