1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
5
<title>Layout Regression Test Harness</title>
11
background-color: #FFFFDD;
12
border: 2px solid red;
24
border: 1px solid black;
30
border: 1px solid black;
37
<script src="regression_tests.js" type="application/x-javascript" language="Javascript">
43
<body onload="DoOnload();">
45
<h1>Layout Regression Test Harness</h1>
48
The JavaScript in this file requires that you grant it XPConnect access,
49
via the dialog that appears when you first load the file. Note that the code
50
herein creates directories and files, so there is the possibility that it
51
may do damage to the contents of your hard disk. You have been warned!
56
<form name="testForm">
58
<input type="radio" name="testType" id="singleFileRadio" checked="true" onclick="UpdateRunTestsButton()"></input><label for="singleFileRadio">Single testcase</label>
60
URL: <input id="singleTestFileInput" name="singleTestFileInput" type="text" size="80" oninput="UpdateRunTestsButton()"></input>
61
<input type="button" onclick="ChooseTestcaseFile();" value="Choose File...">
66
<input type="radio" name="testType" id="dirsRadio" onclick="UpdateRunTestsButton()"></input><label for="dirsRadio">Local Directories</label>
68
<select id="testDirsSelect" size="5" style="width: 200pt">
69
<option>None selected</option>
71
<input type="button" value="Add..." onclick="AppendTestcaseDir();">
72
<input type="button" value="Remove" onclick="RemoveTestcaseDir();">
78
<table cellpadding="5px">
81
<td><strong>Do what</strong></td>
82
<td><strong>Output file locations</strong></td>
87
<div><input id="baselineRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()" checked="true"></input><label for="baselineRadio">Baseline</label></div>
88
<div><input id="verifyRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="verifyRadio">Verify</label></div>
89
<div><input id="verifCompRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="verifCompRadio">Verify and Compare</label></div>
90
<div><input id="compRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="compRadio">Compare</label></div>
93
<table cellpadding="4px">
97
<td>File extensions</td>
100
<td align="right">Baseline:</td>
101
<td><input id="baselineOutputDir" name="baselineOutputDir" type="text" size="40" disabled="true"></input>
102
<input type="button" onclick="gBaselineOutputDir = ChooseOutputDirectory('baselineOutputDir'); UpdateRunTestsButton();" value="Choose..."></td>
103
<td><input type="text" size="6" name="baselineFileExtension" value=".bas"></input> (like ".bas")</td>
106
<td align="right">Verify:</td>
107
<td><input id="verifyOutputDir" name="verifyOutputDir" type="text" size="40" disabled="true"></input>
108
<input type="button" onclick="gVerifyOutputDir = ChooseOutputDirectory('verifyOutputDir'); UpdateRunTestsButton();" value="Choose..."></td>
109
<td><input type="text" size="6" name="verifyFileExtension" value=".ver"></input>(like ".ver")</td>
118
<input type="Button" name="runTests" value="Run the Tests!" onclick="RunTests();">