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 var runPixelTests; | |
4 | 3 |
5 logConsole(); | 4 logConsole(); |
6 | 5 |
7 if (window.testRunner) { | 6 if (window.testRunner) { |
8 testRunner.dumpAsText(runPixelTests); | 7 testRunner.dumpAsText(); |
9 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
10 } | 9 } |
11 | 10 |
12 function runWithKeyDown(fn) | 11 function runWithKeyDown(fn) |
13 { | 12 { |
14 // FIXME: WKTR does not yet support the keyDown() message. Do a mouseDown h
ere | 13 // FIXME: WKTR does not yet support the keyDown() message. Do a mouseDown h
ere |
15 // instead until keyDown support is added. | 14 // instead until keyDown support is added. |
16 var eventName = !window.testRunner || eventSender.keyDown ? 'keypress' : 'mo
usedown' | 15 var eventName = !window.testRunner || eventSender.keyDown ? 'keypress' : 'mo
usedown' |
17 | 16 |
18 function thunk() { | 17 function thunk() { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 else | 155 else |
157 consoleWrite(text + " <span style='color:red'>FAIL</span>"); | 156 consoleWrite(text + " <span style='color:red'>FAIL</span>"); |
158 } | 157 } |
159 | 158 |
160 function consoleWrite(text) | 159 function consoleWrite(text) |
161 { | 160 { |
162 if (testEnded) | 161 if (testEnded) |
163 return; | 162 return; |
164 logConsole().innerHTML += text + "<br>"; | 163 logConsole().innerHTML += text + "<br>"; |
165 } | 164 } |
OLD | NEW |