Bug 37183

Summary: new-run-webkit-tests should ensure font smoothing is in a good state for chromium-mac
Product: WebKit Reporter: Dirk Pranke <dpranke>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dcheng, hbono, thakis
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Dirk Pranke
Reported 2010-04-06 18:29:46 PDT
A number of the image tests may fail if the user's computer is not using the default font smoothing settings on OS X. I believe run-webkit-tests gets around this by explicitly changing the font-smoothing settings, but new-run-webkit-tests doesn't do this. The correct setting is probably "defaults -currentHost write -g AppleFontSmoothing -int 0" (or maybe -int 1)
Attachments
Mark Rowe (bdash)
Comment 1 2010-04-06 18:46:25 PDT
DumpRenderTree sets the user default in its process, not run-webkit-tests. Setting it globally would be a bad idea.
Dirk Pranke
Comment 2 2010-04-06 18:49:55 PDT
(In reply to comment #1) > DumpRenderTree sets the user default in its process, not run-webkit-tests. > Setting it globally would be a bad idea. Good point. I had just gotten far enough in looking through run-webkit-tests to see that run-webkit-tests wasn't doing it :) -- Dirk
Hironori Bono
Comment 3 2010-04-06 19:32:22 PDT
(In reply to comment #2) > (In reply to comment #1) > > DumpRenderTree sets the user default in its process, not run-webkit-tests. > > Setting it globally would be a bad idea. > > Good point. I had just gotten far enough in looking through run-webkit-tests to > see that run-webkit-tests wasn't doing it :) Our test_shell also sets the user default in its process when the |classic_theme| value is true. (On Mac, its default value was true.) As far as I investigated, it seems (probably) your r26203 (*1) changed its default value to false and prevented setting the user default on Mac. So, I would think the easiest solution is setting its default value back to true on Mac. (*1) <http://src.chromium.org/viewvc/chrome?view=rev&revision=26203> Regards, Hironori Bono
Nico Weber
Comment 4 2010-08-29 18:08:45 PDT
The upstream bug of this, http://code.google.com/p/chromium/issues/detail?id=42352, has been fixed. So this can probably be closed as well?
Dirk Pranke
Comment 5 2010-08-30 07:17:21 PDT
Yes, I think it's safe to close this, at least as far as TestShell goes (and I think the DRT port has this fixed as well).
Note You need to log in before you can comment on or make changes to this bug.