Changes between Version 23 and Version 24 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
Jun 28, 2011 11:00:55 PM (13 years ago)
Author:
dominicc@chromium.org
Comment:

Documented overridePreference.

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v23 v24  
    4141
    4242By 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.
     43
     44=== `overridePreference(key, value)` ===
     45
     46Changes a preference with name ''key'' (for example `"WebKitEnableCaretBrowsing"`) with ''value'' (for example `"1"`) for the duration of the test. The preference is reset when the test ends.
    4347
    4448=== `setCanOpenWindows()` ===