Changes between Version 43 and Version 44 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
Sep 6, 2020 7:34:53 PM (2 years ago)
Author:
Fujii Hironori
Comment:

Use js-test.js instread of js-test-pre.js

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v43 v44  
    213213When 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.
    214214
    215 When 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]
    216 
    217 To 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]
     215When writing these tests it is often useful to include either [http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/js-test.js LayoutTests/fast/js/resources/js-test.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]
     216
     217To 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.js LayoutTests/fast/js/resources/js-test.js]
    218218
    219219= DumpRenderTree JavaScript Environment =