| OLD | NEW |
| 1 var console = null; | 1 var console = null; |
| 2 var printFullTestDetails = true; // This is optionaly switched of by test whose
tested values can differ. (see disableFullTestDetailsPrinting()) | 2 var printFullTestDetails = true; // This is optionaly switched of by test whose
tested values can differ. (see disableFullTestDetailsPrinting()) |
| 3 | 3 |
| 4 logConsole(); | 4 logConsole(); |
| 5 | 5 |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 testRunner.dumpAsText(); | 7 if (window.runPixelTests) |
| 8 testRunner.dumpAsTextWithPixelResults(); |
| 9 else |
| 10 testRunner.dumpAsText(); |
| 8 testRunner.waitUntilDone(); | 11 testRunner.waitUntilDone(); |
| 9 } | 12 } |
| 10 | 13 |
| 11 function runWithKeyDown(fn) | 14 function runWithKeyDown(fn) |
| 12 { | 15 { |
| 13 // FIXME: WKTR does not yet support the keyDown() message. Do a mouseDown h
ere | 16 // FIXME: WKTR does not yet support the keyDown() message. Do a mouseDown h
ere |
| 14 // instead until keyDown support is added. | 17 // instead until keyDown support is added. |
| 15 var eventName = !window.testRunner || eventSender.keyDown ? 'keypress' : 'mo
usedown' | 18 var eventName = !window.testRunner || eventSender.keyDown ? 'keypress' : 'mo
usedown' |
| 16 | 19 |
| 17 function thunk() { | 20 function thunk() { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 else | 158 else |
| 156 consoleWrite(text + " <span style='color:red'>FAIL</span>"); | 159 consoleWrite(text + " <span style='color:red'>FAIL</span>"); |
| 157 } | 160 } |
| 158 | 161 |
| 159 function consoleWrite(text) | 162 function consoleWrite(text) |
| 160 { | 163 { |
| 161 if (testEnded) | 164 if (testEnded) |
| 162 return; | 165 return; |
| 163 logConsole().innerHTML += text + "<br>"; | 166 logConsole().innerHTML += text + "<br>"; |
| 164 } | 167 } |
| OLD | NEW |