dojo-util
Version:
Dojo utilities including build system for optimizing JavaScript application performance, and DOH testing tool
252 lines (226 loc) • 6.41 kB
HTML
<html style="height:100%;">
<head>
<title>The Dojo Unit Test Harness, $Rev: 64998be $</title>
<script type="text/javascript" src="_parseURLargs.js"></script>
<style type="text/css">
@import "../../dojo/resources/dojo.css";
/*
body {
margin: 0px;
padding: 0px;
font-size: 13px;
color: #292929;
font-family: Myriad, Lucida Grande, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
*font-size: small;
*font: x-small;
}
th, td {
font-size: 13px;
color: #292929;
font-family: Myriad, Lucida Grande, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
font-weight: normal;
}
* body {
line-height: 1.25em;
}
table {
border-collapse: collapse;
}
*/
#testLayout {
position: relative;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
border: 1px solid black;
border: 0px;
}
.tabBody {
margin: 0px;
padding: 0px;
/*
border: 1px solid black;
*/
background-color: #DEDEDE;
border: 0px;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
overflow: auto;
}
#logBody {
padding-left: 5px;
padding-top: 5px;
font-family: Monaco, monospace;
font-size: 11px;
white-space: pre;
}
#progressOuter {
background-color: #e9e9e9;
background-image: -webkit-linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
background-image: -moz-linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
background-image: -ms-linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
background-image: -o-linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
height: 1em;
/*the following trick is necessary to prevent IE from wrapping the last piece of progress bar into a new line*/
_margin:1px;
_padding: -1px;
}
#progressOuter .success, #progressOuter .failure{
float: left;
height: 1em;
}
#play, #pause {
font-family: Arial;
font-size: 1.4em;
border: 1px solid #DEDEDE;
cursor: pointer;
padding-right: 0.5em;
}
.header {
border: 1px solid #DEDEDE;
}
button.tab {
border-width: 1px 1px 0px 1px;
border-style: solid;
border-color: #DEDEDE;
margin-right: 5px;
}
#testListContainer {
/*
border: 1px solid black;
*/
position: relative;
height: 99%;
width: 100%;
overflow: auto;
}
#testList {
border-collapse: collapse;
position: absolute;
left: 0px;
width: 100%;
}
#testList td {
border-bottom: 1px solid #DEDEDE;
border-right : 1px solid #DEDEDE;
padding: 3px;
}
#testListHeader th {
border-bottom: 1px solid #DEDEDE;
border-right : 1px solid #DEDEDE;
padding: 3px;
font-weight: bolder;
font-style: italic;
}
#testList tfoot {
font-weight: bold;
}
#toggleButtons {
float: left;
background-color: #DEDEDE;
}
div.testGroupName {
position: absolute;
}
.inProgress {
background-color: #85afde;
}
.success {
background-color: #7cdea7;
}
.failure {
background-color: #de827b;
}
</style>
</head>
<body style="height: 100%;">
<table id="testLayout" cellpadding="0" cellspacing="0" style="margin: 0;">
<tr valign="top" height="40">
<td colspan="2" id="logoBar">
<h3 style="margin: 5px 5px 0px 5px; float: left;">D.O.H.: The Dojo Objective Harness</h3>
<img src="small_logo.png" height="40" style="margin: 0px 5px 0px 5px; float: right;">
<span style="margin: 10px 5px 0px 5px; float: right;">
<input type="checkbox" id="audio" name="audio">
<label for="audio">sounds?</label>
</span>
</td>
</tr>
<tr valign="top" height="10">
<td colspan="2"><div id="progressOuter" onclick="doh._jumpToSuite(arguments[0]);"></div></td>
</tr>
<tr valign="top" height="30">
<td width="30%" class="header">
<span id="toggleButtons" onclick="doh.togglePaused();">
<button id="play">►</button>
<button id="pause" style="display: none;">║</button>
</span>
<span id="runningStatus">
<span id="pausedMsg">Stopped</span>
<span id="playingMsg" style="display: none;">Tests Running</span>
</span>
</td>
<td width="*" class="header" valign="bottom">
<button class="tab" onclick="doh.showTestPage();">Test Page</button>
<button class="tab" onclick="doh.showLogPage();">Log</button>
<button class="tab" onclick="doh.showPerfTestsPage();">Performance Tests Results</button>
</td>
</tr>
<tr valign="top" style="border: 0; padding: 0; margin: 0;">
<td style="border: 0; padding: 0; margin: 0; height:100%;">
<div id="testListContainer">
<table cellpadding="0" cellspacing="0" border="0"
width="100%" id="testList" style="margin: 0;" onclick="doh._jumpToLog(arguments[0]);">
<thead>
<tr id="testListHeader" style="border: 0; padding: 0; margin: 0;" >
<th> </th>
<th width="20">
<input type="checkbox" checked
onclick="doh.toggleRunAll();">
</th>
<th width="*" style="text-align: left;">test</th>
<th width="50">time</th>
</tr>
</thead>
<tbody valign="top">
<tr id="groupTemplate" style="display: none;">
<td style="font-family: Arial; width: 15px;">►</td>
<td>
<input type="checkbox" checked>
</td>
<td>group name</td>
<td>10ms</td>
</tr>
<tr id="testTemplate" style="display: none;">
<td> </td>
<td> </td>
<td style="padding-left: 20px;">test name</td>
<td>10ms</td>
</tr>
</tbody>
</table>
</div>
</td>
<td style="height: 100%;">
<div style="position: relative; width: 100%; height: 100%; top: 0px; left: 0px;">
<div class="tabBody"
style="z-index: 1;">
<pre id="logBody"></pre>
<div id="perfTestsBody" style="background-color: white;"></div>
</div>
<iframe id="testBody" class="tabBody"
style="z-index: -1;"></iframe>
<!--
src="http://redesign.dojotoolkit.org"></iframe>
-->
</div>
</td>
</tr>
</table>
<span id="hiddenAudio"></span>
</body>
</html>