Changes between Version 2 and Version 3 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
Nov 15, 2006 4:15:26 AM (14 years ago)
Author:
mitz@webkit.org
Comment:

Added some don'ts

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v2 v3  
    99    layoutTestController.dumpAsText()
    1010}}}
     11
     12* Do not use fonts other than those bundled with Mac OS X. The only exception to this is the Ahem font.
     13
     14* Tests should not access the Internet. Avoid `http:` URLs in `src` and `href` attributes, in CSS properties and in XMLHttpRequest. Testing WebKit's network layer should be done using the HTTP test facility, as described below.
     15
     16* Do not make unnecessary use of `window.setTimeout` and similar functions which create a lower bound on the time it takes the test to complete. For separating events in time, you can use `layoutTestController.leapForward`.
     17
     18* Do not make unnecessary use of external resources: use inline JavaScript and `style` elements instead of `link`s to external stylesheets. You can also use `data:` URLs sometimes for things like frames' `src` attribute. The exceptions are stylesheets and JavaScript libraries that are shared by multiple tests, and cases that test the loading of external resources.
    1119
    1220= DumpRenderTree JavaScript Environment =