Changes between Version 20 and Version 21 of Writing Layout Tests for DumpRenderTree
- Timestamp:
- May 27, 2011, 3:48:57 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Layout Tests for DumpRenderTree
v20 v21 2 2 = Writing good test cases = 3 3 4 Should have some tips here about how to make a test which is easy to know when it succeeds, things like a 100x100 green block, just printing SUCCESS or FAILURE, and using `dumpAsText()`.4 FIXME: Should have some tips here about how to make a test which is easy to know when it succeeds, things like a 100x100 green block, just printing SUCCESS or FAILURE, and using `dumpAsText()`. 5 5 6 Should remind folks to write tests that work both in Safari and in DRT. The trick is to test for the existence of a special object like layoutTestController before using it. An example:6 FIXME: Should remind folks to write tests that work both in Safari and in DRT. The trick is to test for the existence of a special object like layoutTestController before using it. An example: 7 7 {{{ 8 8 if (window.layoutTestController)