|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
|
2 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> |
|
3 <html> |
|
4 <head> |
|
5 <title>Layout Regression Test Harness</title> |
|
6 </head> |
|
7 |
|
8 <style> |
|
9 p.note |
|
10 { |
|
11 background-color: #FFFFDD; |
|
12 border: 2px solid red; |
|
13 padding: 10px; |
|
14 } |
|
15 |
|
16 div.indent |
|
17 { |
|
18 margin-left: 20px; |
|
19 padding: 5px; |
|
20 } |
|
21 |
|
22 #tests |
|
23 { |
|
24 border: 1px solid black; |
|
25 margin: 10px; |
|
26 } |
|
27 |
|
28 #results |
|
29 { |
|
30 border: 1px solid black; |
|
31 margin: 10px; |
|
32 overflow: auto; |
|
33 height: 200px; |
|
34 } |
|
35 </style> |
|
36 |
|
37 <script src="regression_tests.js" type="application/javascript"> |
|
38 <!-- |
|
39 |
|
40 //--> |
|
41 </script> |
|
42 |
|
43 <body onload="DoOnload();"> |
|
44 |
|
45 <h1>Layout Regression Test Harness</h1> |
|
46 |
|
47 <p class="note"> |
|
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! |
|
52 </p> |
|
53 |
|
54 <h2>Tests</h2> |
|
55 <div id="tests"> |
|
56 <form name="testForm"> |
|
57 <div class="indent"> |
|
58 <input type="radio" name="testType" id="singleFileRadio" checked="true" onclick="UpdateRunTestsButton()"></input><label for="singleFileRadio">Single testcase</label> |
|
59 <div class="indent"> |
|
60 URL: <input id="singleTestFileInput" name="singleTestFileInput" type="text" size="80" oninput="UpdateRunTestsButton()"></input> |
|
61 <input type="button" onclick="ChooseTestcaseFile();" value="Choose File..."> |
|
62 </div> |
|
63 </div> |
|
64 |
|
65 <div class="indent"> |
|
66 <input type="radio" name="testType" id="dirsRadio" onclick="UpdateRunTestsButton()"></input><label for="dirsRadio">Local Directories</label> |
|
67 <div class="indent"> |
|
68 <select id="testDirsSelect" size="5" style="width: 200pt"> |
|
69 <option>None selected</option> |
|
70 </select><br> |
|
71 <input type="button" value="Add..." onclick="AppendTestcaseDir();"> |
|
72 <input type="button" value="Remove" onclick="RemoveTestcaseDir();"> |
|
73 </div> |
|
74 </div> |
|
75 |
|
76 <div class="indent"> |
|
77 <hr> |
|
78 <table cellpadding="5px"> |
|
79 <thead> |
|
80 <tr> |
|
81 <td><strong>Do what</strong></td> |
|
82 <td><strong>Output file locations</strong></td> |
|
83 </tr> |
|
84 </thead> |
|
85 <tr> |
|
86 <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> |
|
91 </td> |
|
92 <td valign="top"> |
|
93 <table cellpadding="4px"> |
|
94 <tr> |
|
95 <td></td> |
|
96 <td></td> |
|
97 <td>File extensions</td> |
|
98 </tr> |
|
99 <tr> |
|
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> |
|
104 </tr> |
|
105 <tr> |
|
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> |
|
110 </tr> |
|
111 </table> |
|
112 </td> |
|
113 </tr> |
|
114 </table> |
|
115 </div> |
|
116 <div class="indent"> |
|
117 <hr> |
|
118 <input type="Button" name="runTests" value="Run the Tests!" onclick="RunTests();"> |
|
119 </div> |
|
120 |
|
121 </div> |
|
122 |
|
123 </form> |
|
124 </div> |
|
125 |
|
126 <h2>Results</h2> |
|
127 <div id="results"> |
|
128 </div> |
|
129 |
|
130 </body> |
|
131 </html> |
|
132 |