⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 120450 in webkit


Ignore:
Timestamp:
Jun 15, 2012, 7:07:22 AM (14 years ago)
Author:
rniwa@webkit.org
Message:

Use testRunner instead of layoutTestController in layout test resources
https://bugs.webkit.org/show_bug.cgi?id=89182

Reviewed by Kent Tamura.

  • resources/dump-as-markup.js:

(Markup.waitUntilDone):
(Markup.notifyDone):

  • resources/magnitude-perf.js:

(Magnitude._run):
(Magnitude._runIteration):
(Magnitude):

  • resources/testharnessreport.js:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r120448 r120450  
     12012-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
    1172012-06-15  Zan Dobersek  <zandobersek@gmail.com>
    218
  • trunk/LayoutTests/resources/dump-as-markup.js

    r108668 r120450  
    1515 */
    1616
    17 if (window.layoutTestController)
    18     layoutTestController.dumpAsText();
     17if (window.testRunner)
     18    testRunner.dumpAsText();
    1919
    2020// Namespace
     
    6262    }
    6363
    64     // FIXME: Have this respect layoutTestController.dumpChildFramesAsText?
     64    // FIXME: Have this respect testRunner.dumpChildFramesAsText?
    6565    // FIXME: Should we care about framesets?
    6666    // DocumentFragment doesn't have a getElementsByTagName method.
     
    9393Markup.waitUntilDone = function()
    9494{
    95     if (window.layoutTestController)
    96         layoutTestController.waitUntilDone();
     95    if (window.testRunner)
     96        testRunner.waitUntilDone();
    9797    Markup.noAutoDump();
    9898}
     
    101101{
    102102    // 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();
    105105
    106106    // If dump has already been called, don't bother to dump again
     
    111111    // clobber the test itself. But when in layout test mode, we don't want
    112112    // side effects from the test to be included in the results.
    113     if (window.layoutTestController)
     113    if (window.testRunner)
    114114        document.body.innerHTML = '';
    115115
    116116    document.body.appendChild(Markup._container);
    117117
    118     if (window.layoutTestController)
    119         layoutTestController.notifyDone();
     118    if (window.testRunner)
     119        testRunner.notifyDone();
    120120}
    121121
  • trunk/LayoutTests/resources/magnitude-perf.js

    r66132 r120450  
    1414// -expected is one of the run-time constants listed below (e.g. Magnitude.CONSTANT).
    1515
    16 if (window.layoutTestController)
    17     layoutTestController.dumpAsText();
     16if (window.testRunner)
     17    testRunner.dumpAsText();
    1818
    1919// Namespace.
     
    101101        // By default don't log detailed information to layout test results to keep expected results
    102102        // consistent from run to run.
    103         if (!window.layoutTestController || bigO != expected)
     103        if (!window.testRunner || bigO != expected)
    104104            Magnitude._log(Magnitude._debugLog);
    105105    } else {
     
    223223    if (window.chromium) {
    224224      // 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.
    226226      var microseconds = milliseconds * 1000;
    227227      var interval = new chromium.Interval();
     
    250250window.addEventListener('load', function() {
    251251    // 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)
    253253        document.body.innerHTML = '';
    254254    document.body.appendChild(Magnitude._container);
  • trunk/LayoutTests/resources/testharnessreport.js

    r111411 r120450  
    1414
    1515// Setup for WebKit JavaScript tests
    16 if (self.layoutTestController)
    17     layoutTestController.dumpAsText();
     16if (self.testRunner)
     17    testRunner.dumpAsText();
    1818
    1919// Function used to convert the test status code into
Note: See TracChangeset for help on using the changeset viewer.