Changes between Version 39 and Version 40 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
Oct 11, 2012 1:34:00 PM (9 years ago)
Author:
tony@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v39 v40  
    145145=== Couldn't you do a ref-test? ===
    146146
    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]
     147Most 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
     149Alternately, 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.
    148150
    149151=== How to write portable pixel tests ===