Changes between Version 39 and Version 40 of Writing Layout Tests for DumpRenderTree
- Timestamp:
- Oct 11, 2012 1:34:00 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Layout Tests for DumpRenderTree
v39 v40 145 145 === Couldn't you do a ref-test? === 146 146 147 Most test cases can be easily transformed into ref-tests and it is the preferred way to add new tests. See the dedicated page: [wiki:"Writing Reftests" Layout Tests: Writing Reftests] 147 Most test cases can be easily transformed into ref-tests and it is the preferred way to add new tests that need pixel results. See the dedicated page: [wiki:"Writing Reftests" Layout Tests: Writing Reftests] 148 149 Alternately, you could use dump-as-markup.js (http://trac.webkit.org/browser/trunk/LayoutTests/resources/dump-as-markup.js) if you need to verify the DOM structure or check-layout.js (http://trac.webkit.org/browser/trunk/LayoutTests/resources/check-layout.js) if you need to verify render tree sizes. Both of these will allow the test to run faster than a pixel test or a ref-test. 148 150 149 151 === How to write portable pixel tests ===