Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
michael@0 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
michael@0 | 2 | "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> |
michael@0 | 3 | <html> |
michael@0 | 4 | <head> |
michael@0 | 5 | <title>Layout Regression Test Harness</title> |
michael@0 | 6 | </head> |
michael@0 | 7 | |
michael@0 | 8 | <style> |
michael@0 | 9 | p.note |
michael@0 | 10 | { |
michael@0 | 11 | background-color: #FFFFDD; |
michael@0 | 12 | border: 2px solid red; |
michael@0 | 13 | padding: 10px; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | div.indent |
michael@0 | 17 | { |
michael@0 | 18 | margin-left: 20px; |
michael@0 | 19 | padding: 5px; |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | #tests |
michael@0 | 23 | { |
michael@0 | 24 | border: 1px solid black; |
michael@0 | 25 | margin: 10px; |
michael@0 | 26 | } |
michael@0 | 27 | |
michael@0 | 28 | #results |
michael@0 | 29 | { |
michael@0 | 30 | border: 1px solid black; |
michael@0 | 31 | margin: 10px; |
michael@0 | 32 | overflow: auto; |
michael@0 | 33 | height: 200px; |
michael@0 | 34 | } |
michael@0 | 35 | </style> |
michael@0 | 36 | |
michael@0 | 37 | <script src="regression_tests.js" type="application/javascript"> |
michael@0 | 38 | <!-- |
michael@0 | 39 | |
michael@0 | 40 | //--> |
michael@0 | 41 | </script> |
michael@0 | 42 | |
michael@0 | 43 | <body onload="DoOnload();"> |
michael@0 | 44 | |
michael@0 | 45 | <h1>Layout Regression Test Harness</h1> |
michael@0 | 46 | |
michael@0 | 47 | <p class="note"> |
michael@0 | 48 | The JavaScript in this file requires that you grant it XPConnect access, |
michael@0 | 49 | via the dialog that appears when you first load the file. Note that the code |
michael@0 | 50 | herein creates directories and files, so there is the possibility that it |
michael@0 | 51 | may do damage to the contents of your hard disk. You have been warned! |
michael@0 | 52 | </p> |
michael@0 | 53 | |
michael@0 | 54 | <h2>Tests</h2> |
michael@0 | 55 | <div id="tests"> |
michael@0 | 56 | <form name="testForm"> |
michael@0 | 57 | <div class="indent"> |
michael@0 | 58 | <input type="radio" name="testType" id="singleFileRadio" checked="true" onclick="UpdateRunTestsButton()"></input><label for="singleFileRadio">Single testcase</label> |
michael@0 | 59 | <div class="indent"> |
michael@0 | 60 | URL: <input id="singleTestFileInput" name="singleTestFileInput" type="text" size="80" oninput="UpdateRunTestsButton()"></input> |
michael@0 | 61 | <input type="button" onclick="ChooseTestcaseFile();" value="Choose File..."> |
michael@0 | 62 | </div> |
michael@0 | 63 | </div> |
michael@0 | 64 | |
michael@0 | 65 | <div class="indent"> |
michael@0 | 66 | <input type="radio" name="testType" id="dirsRadio" onclick="UpdateRunTestsButton()"></input><label for="dirsRadio">Local Directories</label> |
michael@0 | 67 | <div class="indent"> |
michael@0 | 68 | <select id="testDirsSelect" size="5" style="width: 200pt"> |
michael@0 | 69 | <option>None selected</option> |
michael@0 | 70 | </select><br> |
michael@0 | 71 | <input type="button" value="Add..." onclick="AppendTestcaseDir();"> |
michael@0 | 72 | <input type="button" value="Remove" onclick="RemoveTestcaseDir();"> |
michael@0 | 73 | </div> |
michael@0 | 74 | </div> |
michael@0 | 75 | |
michael@0 | 76 | <div class="indent"> |
michael@0 | 77 | <hr> |
michael@0 | 78 | <table cellpadding="5px"> |
michael@0 | 79 | <thead> |
michael@0 | 80 | <tr> |
michael@0 | 81 | <td><strong>Do what</strong></td> |
michael@0 | 82 | <td><strong>Output file locations</strong></td> |
michael@0 | 83 | </tr> |
michael@0 | 84 | </thead> |
michael@0 | 85 | <tr> |
michael@0 | 86 | <td> |
michael@0 | 87 | <div><input id="baselineRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()" checked="true"></input><label for="baselineRadio">Baseline</label></div> |
michael@0 | 88 | <div><input id="verifyRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="verifyRadio">Verify</label></div> |
michael@0 | 89 | <div><input id="verifCompRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="verifCompRadio">Verify and Compare</label></div> |
michael@0 | 90 | <div><input id="compRadio" type="radio" name="doWhat" onclick="UpdateRunTestsButton()"></input><label for="compRadio">Compare</label></div> |
michael@0 | 91 | </td> |
michael@0 | 92 | <td valign="top"> |
michael@0 | 93 | <table cellpadding="4px"> |
michael@0 | 94 | <tr> |
michael@0 | 95 | <td></td> |
michael@0 | 96 | <td></td> |
michael@0 | 97 | <td>File extensions</td> |
michael@0 | 98 | </tr> |
michael@0 | 99 | <tr> |
michael@0 | 100 | <td align="right">Baseline:</td> |
michael@0 | 101 | <td><input id="baselineOutputDir" name="baselineOutputDir" type="text" size="40" disabled="true"></input> |
michael@0 | 102 | <input type="button" onclick="gBaselineOutputDir = ChooseOutputDirectory('baselineOutputDir'); UpdateRunTestsButton();" value="Choose..."></td> |
michael@0 | 103 | <td><input type="text" size="6" name="baselineFileExtension" value=".bas"></input> (like ".bas")</td> |
michael@0 | 104 | </tr> |
michael@0 | 105 | <tr> |
michael@0 | 106 | <td align="right">Verify:</td> |
michael@0 | 107 | <td><input id="verifyOutputDir" name="verifyOutputDir" type="text" size="40" disabled="true"></input> |
michael@0 | 108 | <input type="button" onclick="gVerifyOutputDir = ChooseOutputDirectory('verifyOutputDir'); UpdateRunTestsButton();" value="Choose..."></td> |
michael@0 | 109 | <td><input type="text" size="6" name="verifyFileExtension" value=".ver"></input>(like ".ver")</td> |
michael@0 | 110 | </tr> |
michael@0 | 111 | </table> |
michael@0 | 112 | </td> |
michael@0 | 113 | </tr> |
michael@0 | 114 | </table> |
michael@0 | 115 | </div> |
michael@0 | 116 | <div class="indent"> |
michael@0 | 117 | <hr> |
michael@0 | 118 | <input type="Button" name="runTests" value="Run the Tests!" onclick="RunTests();"> |
michael@0 | 119 | </div> |
michael@0 | 120 | |
michael@0 | 121 | </div> |
michael@0 | 122 | |
michael@0 | 123 | </form> |
michael@0 | 124 | </div> |
michael@0 | 125 | |
michael@0 | 126 | <h2>Results</h2> |
michael@0 | 127 | <div id="results"> |
michael@0 | 128 | </div> |
michael@0 | 129 | |
michael@0 | 130 | </body> |
michael@0 | 131 | </html> |
michael@0 | 132 |