Changeset 120450 in webkit
- Timestamp:
- Jun 15, 2012, 7:07:22 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
resources/dump-as-markup.js (modified) (5 diffs)
-
resources/magnitude-perf.js (modified) (4 diffs)
-
resources/testharnessreport.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120448 r120450 1 2012-06-15 Ryosuke Niwa <rniwa@webkit.org> 2 3 Use testRunner instead of layoutTestController in layout test resources 4 https://bugs.webkit.org/show_bug.cgi?id=89182 5 6 Reviewed by Kent Tamura. 7 8 * resources/dump-as-markup.js: 9 (Markup.waitUntilDone): 10 (Markup.notifyDone): 11 * resources/magnitude-perf.js: 12 (Magnitude._run): 13 (Magnitude._runIteration): 14 (Magnitude): 15 * resources/testharnessreport.js: 16 1 17 2012-06-15 Zan Dobersek <zandobersek@gmail.com> 2 18 -
trunk/LayoutTests/resources/dump-as-markup.js
r108668 r120450 15 15 */ 16 16 17 if (window. layoutTestController)18 layoutTestController.dumpAsText();17 if (window.testRunner) 18 testRunner.dumpAsText(); 19 19 20 20 // Namespace … … 62 62 } 63 63 64 // FIXME: Have this respect layoutTestController.dumpChildFramesAsText?64 // FIXME: Have this respect testRunner.dumpChildFramesAsText? 65 65 // FIXME: Should we care about framesets? 66 66 // DocumentFragment doesn't have a getElementsByTagName method. … … 93 93 Markup.waitUntilDone = function() 94 94 { 95 if (window. layoutTestController)96 layoutTestController.waitUntilDone();95 if (window.testRunner) 96 testRunner.waitUntilDone(); 97 97 Markup.noAutoDump(); 98 98 } … … 101 101 { 102 102 // Need to waitUntilDone or some tests won't finish appending the markup before the text is dumped. 103 if (window. layoutTestController)104 layoutTestController.waitUntilDone();103 if (window.testRunner) 104 testRunner.waitUntilDone(); 105 105 106 106 // If dump has already been called, don't bother to dump again … … 111 111 // clobber the test itself. But when in layout test mode, we don't want 112 112 // side effects from the test to be included in the results. 113 if (window. layoutTestController)113 if (window.testRunner) 114 114 document.body.innerHTML = ''; 115 115 116 116 document.body.appendChild(Markup._container); 117 117 118 if (window. layoutTestController)119 layoutTestController.notifyDone();118 if (window.testRunner) 119 testRunner.notifyDone(); 120 120 } 121 121 -
trunk/LayoutTests/resources/magnitude-perf.js
r66132 r120450 14 14 // -expected is one of the run-time constants listed below (e.g. Magnitude.CONSTANT). 15 15 16 if (window. layoutTestController)17 layoutTestController.dumpAsText();16 if (window.testRunner) 17 testRunner.dumpAsText(); 18 18 19 19 // Namespace. … … 101 101 // By default don't log detailed information to layout test results to keep expected results 102 102 // consistent from run to run. 103 if (!window. layoutTestController || bigO != expected)103 if (!window.testRunner || bigO != expected) 104 104 Magnitude._log(Magnitude._debugLog); 105 105 } else { … … 223 223 if (window.chromium) { 224 224 // FIXME: If using microseconds turns out to be less flaky, expose microseconds 225 // from JSC or layoutTestController and use them. Otherwise, get rid of this block.225 // from JSC or testRunner and use them. Otherwise, get rid of this block. 226 226 var microseconds = milliseconds * 1000; 227 227 var interval = new chromium.Interval(); … … 250 250 window.addEventListener('load', function() { 251 251 // FIXME: Add Magnitude.waitUntilDone/notifyDone for tests that need to operate after the load event has fired. 252 if (window. layoutTestController)252 if (window.testRunner) 253 253 document.body.innerHTML = ''; 254 254 document.body.appendChild(Magnitude._container); -
trunk/LayoutTests/resources/testharnessreport.js
r111411 r120450 14 14 15 15 // Setup for WebKit JavaScript tests 16 if (self. layoutTestController)17 layoutTestController.dumpAsText();16 if (self.testRunner) 17 testRunner.dumpAsText(); 18 18 19 19 // Function used to convert the test status code into
Note:
See TracChangeset
for help on using the changeset viewer.