| 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 if (window.testRunner) { | 3 if (window.testRunner) { |
| 4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 } | 6 } |
| 7 | 7 |
| 8 (function () { | 8 (function () { |
| 9 var logLines = null; | 9 var logLines = null; |
| 10 var completedIterations = -1; | 10 var completedIterations = -1; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 | 127 |
| 128 PerfTestRunner.log = function (text) { | 128 PerfTestRunner.log = function (text) { |
| 129 if (logLines) | 129 if (logLines) |
| 130 logLines.push(text); | 130 logLines.push(text); |
| 131 else | 131 else |
| 132 logInDocument(text); | 132 logInDocument(text); |
| 133 } | 133 } |
| 134 | 134 |
| 135 PerfTestRunner.logFatalError = function (text) { | 135 PerfTestRunner.logFatalError = function (text) { |
| 136 PerfTestRunner.log(text); | 136 PerfTestRunner.log("FATAL: " + text); |
| 137 finish(); | 137 finish(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 PerfTestRunner.forceLayout = function(doc) { | 140 PerfTestRunner.forceLayout = function(doc) { |
| 141 doc = doc || document; | 141 doc = doc || document; |
| 142 if (doc.body) | 142 if (doc.body) |
| 143 doc.body.offsetHeight; | 143 doc.body.offsetHeight; |
| 144 else if (doc.documentElement) | 144 else if (doc.documentElement) |
| 145 doc.documentElement.offsetHeight; | 145 doc.documentElement.offsetHeight; |
| 146 }; | 146 }; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 iframe.contentDocument.close(); | 327 iframe.contentDocument.close(); |
| 328 document.body.removeChild(iframe); | 328 document.body.removeChild(iframe); |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 PerfTestRunner.measureTime(test); | 331 PerfTestRunner.measureTime(test); |
| 332 } | 332 } |
| 333 | 333 |
| 334 window.PerfTestRunner = PerfTestRunner; | 334 window.PerfTestRunner = PerfTestRunner; |
| 335 })(); | 335 })(); |
| OLD | NEW |