Changes between Version 35 and Version 36 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
May 31, 2012 10:55:38 AM (12 years ago)
Author:
jacobg@adobe.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v35 v36  
    196196When writing test cases that only test the DOM it is still preferred to use an .html file since it only requires one test file instead of two.
    197197
    198 When writing these tests it is often useful to include [http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/js-test-pre.js LayoutTests/fast/js/resources/js-test-pre.js] and  [http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/js-test-post.js LayoutTests/fast/js/resources/js-test-post.js].
     198When writing these tests it is often useful to include either [http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/js-test-pre.js LayoutTests/fast/js/resources/js-test-pre.js] and  [http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/js-test-post.js LayoutTests/fast/js/resources/js-test-post.js], OR, [http://trac.webkit.org/browser/trunk/LayoutTests/resources/testharness.js LayoutTests/resources/testharness.js] and [http://trac.webkit.org/browser/trunk/LayoutTests/resources/testharnessreport.js LayoutTests/resources/testharnessreport.js].  testharness.js / testharnessreport.js are preferable as they allow portability between the WebKit and W3C test repositories.  More information is available [wiki:"Writing testharness Tests" here]
    199199
    200200To see what sort of special js functions are exposed to js-only tests, see [http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/js-test-pre.js LayoutTests/fast/js/resources/js-test-pre.js]