Changes between Version 35 and Version 36 of Writing Layout Tests for DumpRenderTree
- Timestamp:
- May 31, 2012 10:55:38 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Layout Tests for DumpRenderTree
v35 v36 196 196 When 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. 197 197 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].198 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] 199 199 200 200 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]