Bug 128848

Summary: [Win] Make tests more consistent with Mac platform
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Tools / TestsAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch simon.fraser: review+

Description Brent Fulgham 2014-02-14 15:17:22 PST
A number of test differences have crept in to the Windows port during the last year or so of development. This bug brings them back into sync:

1. We should be using Mock scrollbars so we can share common expected output.
2. We should enable CSS Regions in DumpRenderTree, since the tests are being run and the feature is enabled on Windows.
3. It would be nice if we could make antialiasing/font smoothing identical on the two platforms, but it seems like there's still some very small differences.
Comment 1 Brent Fulgham 2014-02-14 15:28:46 PST
Created attachment 224259 [details]
Patch
Comment 2 Simon Fraser (smfr) 2014-02-14 15:35:54 PST
Comment on attachment 224259 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=224259&action=review

> Source/WebKit/win/WebPreferences.h:484
> +    virtual HRESULT STDMETHODCALLTYPE screenFontSubstitutionEnabled(BOOL*);
> +    virtual HRESULT STDMETHODCALLTYPE setScreenFontSubstitutionEnabled(BOOL);

I'm not sure this one has any effect on Windows.

> Source/WebKit/win/WebView.cpp:5058
> +    hr = prefsPrivate->screenFontSubstitutionEnabled(&enabled);
> +    if (FAILED(hr))
> +        return hr;
> +    settings.setScreenFontSubstitutionEnabled(enabled);

I think this is a no-op.

> Tools/DumpRenderTree/win/DumpRenderTree.cpp:876
> +    preferences->setCSSRegionsEnabled(TRUE);

Does this mean we can enable a bunch of tests?
Comment 3 Brent Fulgham 2014-02-14 16:17:06 PST
Landed in http://trac.webkit.org/changeset/164141.
Comment 4 Radar WebKit Bug Importer 2014-02-14 16:17:45 PST
<rdar://problem/16075979>