OLD | NEW |
1 // There are tests for computeStatistics() located in LayoutTests/fast/harness/p
erftests | 1 // There are tests for computeStatistics() located in LayoutTests/fast/harness/p
erftests |
2 | 2 |
3 // We need access to console.memory for the memory measurements | 3 // We need access to console.memory for the memory measurements |
4 if (window.internals) | 4 if (window.internals) |
5 internals.settings.setMemoryInfoEnabled(true); | 5 internals.settings.setMemoryInfoEnabled(true); |
6 | 6 |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 } | 10 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 window.scrollTo(0, document.body.height); | 135 window.scrollTo(0, document.body.height); |
136 } | 136 } |
137 | 137 |
138 PerfTestRunner.log = function (text) { | 138 PerfTestRunner.log = function (text) { |
139 if (logLines) | 139 if (logLines) |
140 logLines.push(text); | 140 logLines.push(text); |
141 else | 141 else |
142 logInDocument(text); | 142 logInDocument(text); |
143 } | 143 } |
144 | 144 |
| 145 PerfTestRunner.logFatalError(text) { |
| 146 logFatalError(text); |
| 147 } |
| 148 |
145 function logFatalError(text) { | 149 function logFatalError(text) { |
146 PerfTestRunner.log(text); | 150 PerfTestRunner.log(text); |
147 finish(); | 151 finish(); |
148 } | 152 } |
149 | 153 |
150 function start(test, runner) { | 154 function start(test, runner) { |
151 if (!test) { | 155 if (!test) { |
152 logFatalError("Got a bad test object."); | 156 logFatalError("Got a bad test object."); |
153 return; | 157 return; |
154 } | 158 } |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 337 |
334 iframe.contentDocument.close(); | 338 iframe.contentDocument.close(); |
335 document.body.removeChild(iframe); | 339 document.body.removeChild(iframe); |
336 }; | 340 }; |
337 | 341 |
338 PerfTestRunner.measureTime(test); | 342 PerfTestRunner.measureTime(test); |
339 } | 343 } |
340 | 344 |
341 window.PerfTestRunner = PerfTestRunner; | 345 window.PerfTestRunner = PerfTestRunner; |
342 })(); | 346 })(); |
OLD | NEW |