On Feb 23, 2010, at 8:21 AM, Tor Arne Vestbø wrote: > On 23/2/10 17:02 , Simon Fraser wrote: >> On Feb 23, 2010, at 5:00 AM, Tor Arne Vestbø wrote: >> >>> Hey all, >>> >>> A reoccurring problem when trying to maintain layout-test results >>> is differences in font and theme metrics for tests that dump the >>> render tree. Often a test does not actually test font >>> loading/rendering or theming, but has a piece of text or an input >>> element somewhere in the test which causes the metrics in the >>> render tree to be different, and hence the test failing. >> >> I think the correct longterm solution to this problem is to use >> reftests. A reftest consists of two files; the test file, and a >> "reference" file that should give the same on-screen rendering. When >> the test is run, the browser loads both files, takes snapshots, and >> does a pixel comparison. Thus font differences between platforms >> become less of an issue. > > You mean for example that the reference file of a css-border test that has > some header-text describing the test would contain the same header-text but > then a image to represent the reference of the css-part?
It could be an image, or it could be a configuration of <div> elements, or a table, or something else that can be configured to look exactly the same as the CSS border property being tested. Simon _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev