Bug 7947 - Add repaint testing support to run-webkit-tests
Summary: Add repaint testing support to run-webkit-tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P3 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 16:13 PST by mitz
Modified: 2006-03-25 14:21 PST (History)
1 user (show)

See Also:


Attachments
Patch (6.02 KB, patch)
2006-03-23 16:18 PST, mitz
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2006-03-23 16:13:57 PST
[This is different from bug 6905]

By forcing WebCore to paint one line or column of pixels at a time, it is possible to detect objects that do not repaint correctly and to automate tests for repaint bugs. Just by running in this mode over some of the existing tests I spotted two repaint bugs.

I am going to attach a patch to DRT and run-webkit-tests that adds this test mode both as an option to run-webkit-tests (to use on existing tests) and as a layoutTestController option (to be used by repaint regression tests).

Unfortunately, as I have found out today, when sweeping vertically, almost every test fails to repaint correctly, since Times paints one line of faint pixels above the line rect (the problem of fonts painting outside their line bounds is known, see bug 6274). Still, I think the option is useful, at least for automating repaint tests.
Comment 1 mitz 2006-03-23 16:18:22 PST
Created attachment 7265 [details]
Patch
Comment 2 Darin Adler 2006-03-23 16:49:27 PST
Comment on attachment 7265 [details]
Patch

Looks really cool. r=me
Comment 3 Eric Seidel (no email) 2006-03-25 14:21:24 PST
Landed.