Changes between Version 37 and Version 38 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
Jun 19, 2012, 1:17:30 AM (12 years ago)
Author:
rniwa@webkit.org
Comment:

s/layoutTestController/testRunner/

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v37 v38  
    1919{{{
    2020<script>
    21 layoutTestController.dumpAsText();
     21testRunner.dumpAsText();
    2222</script>
    2323}}}
     
    2929{{{
    3030<script>
    31 if (window.layoutTestController)
    32     layoutTestController.dumpAsText()
     31if (window.testRunner)
     32    testRunner.dumpAsText()
    3333</script>
    3434}}}
     
    111111</style>
    112112<script>
    113 if (window.layoutTestController)
    114    layoutTestController.dumpAsText();
     113if (window.testRunner)
     114   testRunner.dumpAsText();
    115115
    116116function log(message)
     
    197197
    198198{{{
    199 if (window.layoutTestController)
    200     layoutTestController.dumpAsText(true);
     199if (window.testRunner)
     200    testRunner.dumpAsText(true);
    201201}}}
    202202
     
    221221These can be used to perform additional debugging-related tasks.
    222222
    223 == `window.layoutTestController` ==
     223== `window.testRunner` ==
    224224
    225225=== `dumpAsText()` ===
     
    229229=== `waitUntilDone()` and `notifyDone()` ===
    230230
    231 By default, DumpRenderTree dumps each test file immediately after the document has loaded and the load event handlers have executed. If your test needs to do further processing after loading -- for example, waiting for a timer to fire -- call `layoutTestController.waitUntilDone()` to tell DumpRenderTree to delay its dump, and then call `notifyDone` when your results are ready.
     231By default, DumpRenderTree dumps each test file immediately after the document has loaded and the load event handlers have executed. If your test needs to do further processing after loading -- for example, waiting for a timer to fire -- call `testRunner.waitUntilDone()` to tell DumpRenderTree to delay its dump, and then call `notifyDone` when your results are ready.
    232232
    233233=== `overridePreference(key, value)` ===