layout/tools/tests/regression_tests.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/tools/tests/regression_tests.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,132 @@
     1.4 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     1.5 +        "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
     1.6 +<html>
     1.7 +<head>
     1.8 +  <title>Layout Regression Test Harness</title>
     1.9 +</head>
    1.10 +
    1.11 +<style>
    1.12 +p.note
    1.13 +{
    1.14 +  background-color: #FFFFDD;
    1.15 +  border: 2px solid red;
    1.16 +  padding: 10px;
    1.17 +}
    1.18 +
    1.19 +div.indent
    1.20 +{
    1.21 +  margin-left: 20px;
    1.22 +  padding:     5px;
    1.23 +}
    1.24 +
    1.25 +#tests
    1.26 +{
    1.27 +  border: 1px solid black;
    1.28 +  margin: 10px;
    1.29 +}
    1.30 +
    1.31 +#results
    1.32 +{
    1.33 +  border:   1px solid black;
    1.34 +  margin:   10px;
    1.35 +  overflow: auto;
    1.36 +  height:   200px;
    1.37 +}
    1.38 +</style>
    1.39 +
    1.40 +<script src="regression_tests.js" type="application/javascript">
    1.41 +<!--
    1.42 +
    1.43 +//-->
    1.44 +</script>
    1.45 +
    1.46 +<body onload="DoOnload();">
    1.47 +
    1.48 +<h1>Layout Regression Test Harness</h1>
    1.49 +
    1.50 +<p class="note">
    1.51 +The JavaScript in this file requires that you grant it XPConnect access,
    1.52 +via the dialog that appears when you first load the file. Note that the code
    1.53 +herein creates directories and files, so there is the possibility that it
    1.54 +may do damage to the contents of your hard disk. You have been warned!
    1.55 +</p>
    1.56 +
    1.57 +<h2>Tests</h2>
    1.58 +<div id="tests">
    1.59 +<form name="testForm">
    1.60 +  <div class="indent">
    1.61 +    <input type="radio" name="testType" id="singleFileRadio" checked="true" onclick="UpdateRunTestsButton()"></input><label for="singleFileRadio">Single testcase</label>
    1.62 +    <div class="indent">
    1.63 +      URL: <input id="singleTestFileInput" name="singleTestFileInput" type="text" size="80" oninput="UpdateRunTestsButton()"></input>
    1.64 +      <input type="button" onclick="ChooseTestcaseFile();" value="Choose File...">
    1.65 +    </div>
    1.66 +  </div>
    1.67 +
    1.68 +  <div class="indent">
    1.69 +    <input type="radio" name="testType" id="dirsRadio" onclick="UpdateRunTestsButton()"></input><label for="dirsRadio">Local Directories</label>
    1.70 +    <div class="indent">
    1.71 +      <select id="testDirsSelect" size="5" style="width: 200pt">
    1.72 +        <option>None selected</option>
    1.73 +      </select><br>
    1.74 +      <input type="button" value="Add..." onclick="AppendTestcaseDir();">
    1.75 +      <input type="button" value="Remove" onclick="RemoveTestcaseDir();">
    1.76 +    </div>
    1.77 +  </div>
    1.78 +  
    1.79 +  <div class="indent">
    1.80 +    <hr>
    1.81 +    <table cellpadding="5px">
    1.82 +      <thead>
    1.83 +      <tr>
    1.84 +      <td><strong>Do what</strong></td>
    1.85 +      <td><strong>Output file locations</strong></td>
    1.86 +      </tr>
    1.87 +      </thead>
    1.88 +      <tr>
    1.89 +      <td>
    1.90 +        <div><input id="baselineRadio"  type="radio" name="doWhat" onclick="UpdateRunTestsButton()" checked="true"></input><label for="baselineRadio">Baseline</label></div>
    1.91 +        <div><input id="verifyRadio"    type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="verifyRadio">Verify</label></div>
    1.92 +        <div><input id="verifCompRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="verifCompRadio">Verify and Compare</label></div>
    1.93 +        <div><input id="compRadio"      type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="compRadio">Compare</label></div>
    1.94 +      </td>
    1.95 +      <td valign="top">
    1.96 +        <table cellpadding="4px">
    1.97 +          <tr>
    1.98 +            <td></td>
    1.99 +            <td></td>
   1.100 +            <td>File extensions</td>
   1.101 +          </tr>
   1.102 +          <tr>
   1.103 +            <td align="right">Baseline:</td>
   1.104 +            <td><input id="baselineOutputDir" name="baselineOutputDir" type="text" size="40" disabled="true"></input>
   1.105 +                <input type="button" onclick="gBaselineOutputDir = ChooseOutputDirectory('baselineOutputDir'); UpdateRunTestsButton();" value="Choose..."></td>
   1.106 +            <td><input type="text" size="6" name="baselineFileExtension" value=".bas"></input> (like ".bas")</td>
   1.107 +          </tr>
   1.108 +          <tr>
   1.109 +            <td align="right">Verify:</td>
   1.110 +            <td><input id="verifyOutputDir" name="verifyOutputDir" type="text" size="40" disabled="true"></input>
   1.111 +                <input type="button" onclick="gVerifyOutputDir = ChooseOutputDirectory('verifyOutputDir'); UpdateRunTestsButton();" value="Choose..."></td>
   1.112 +            <td><input type="text" size="6" name="verifyFileExtension" value=".ver"></input>(like ".ver")</td>
   1.113 +          </tr>
   1.114 +        </table>
   1.115 +      </td>
   1.116 +      </tr>
   1.117 +      </table>
   1.118 +    </div>
   1.119 +    <div class="indent">
   1.120 +      <hr>
   1.121 +      <input type="Button" name="runTests" value="Run the Tests!" onclick="RunTests();">
   1.122 +    </div>
   1.123 +
   1.124 +  </div>
   1.125 +  
   1.126 +</form>
   1.127 +</div>
   1.128 +
   1.129 +<h2>Results</h2>
   1.130 +<div id="results">
   1.131 +</div>
   1.132 +
   1.133 +</body>
   1.134 +</html>
   1.135 +

mercurial