Changes between Version 15 and Version 16 of Writing Layout Tests for DumpRenderTree
- Timestamp:
- Jun 28, 2010, 9:58:49 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Layout Tests for DumpRenderTree
v15 v16 19 19 20 20 = Writing JavaScript-based DOM-only Test Cases = 21 Test cases which only test the DOM can be written as .js files instead of .html files 22 * Write a .js file and place it in a script-tests/ subdirectory23 * Add a TEMPLATE.html file to the same script-tests/ subdirectory, fixing the paths to point to fast/js/resources/js-test*24 * run make-script-test-wrappers. An example:21 Test cases which only test the DOM can be written as .js files instead of .html files. 22 * Write a .js file and place it in a `script-tests/` subdirectory. 23 * Add a `TEMPLATE.html` file to the same `script-tests/` subdirectory, fixing the paths to point to `fast/js/resources/js-test*`. 24 * Run `make-script-test-wrappers`. An example: 25 25 {{{ 26 26 $ make-script-test-wrappers LayoutTests/fast/dom/script-tests/my-new-test.js 27 27 }}} 28 28 29 To see what sort of special js functions are exposed to js-only tests, see fast/js/resources/js-test-pre.js29 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 30 30 31 31 = DumpRenderTree JavaScript Environment =