diff options
author | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 20:40:10 +0000 |
---|---|---|
committer | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 20:40:10 +0000 |
commit | bc20887d969e58ec90b1b9b512f7de6f01e41dd3 (patch) | |
tree | 3c771cf7553b876413e0a7fd05059f8df4efdd34 | |
parent | 262ccb1ba254e91a13969333b8a10c02f2242fc2 (diff) | |
download | chromium_src-bc20887d969e58ec90b1b9b512f7de6f01e41dd3.zip chromium_src-bc20887d969e58ec90b1b9b512f7de6f01e41dd3.tar.gz chromium_src-bc20887d969e58ec90b1b9b512f7de6f01e41dd3.tar.bz2 |
Modify change in CL 21434 - allow standard font smoothing as well as none
Prior to CL 21434 test_shell did not actually check if ClearType was
disabled. I had thought that the requirement for the layout tests was
that *all* font smoothing was disabled (both ClearType and standard). Turns
out that standard is okay, so I am reenabling it here.
Note that CL 21434 was really just a re-reverting of 21368.
TEST=none
BUG=none
R=tony@chromium.org
Review URL: http://codereview.chromium.org/160082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21568 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/tools/test_shell/test_shell_platform_delegate_win.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/webkit/tools/test_shell/test_shell_platform_delegate_win.cc b/webkit/tools/test_shell/test_shell_platform_delegate_win.cc index c41bd13..437c8bc 100644 --- a/webkit/tools/test_shell/test_shell_platform_delegate_win.cc +++ b/webkit/tools/test_shell/test_shell_platform_delegate_win.cc @@ -65,22 +65,25 @@ bool TestShellPlatformDelegate::CheckLayoutTestSystemDependencies() { // XP; } else { errors.push_back("Unsupported Operating System version " - "(must use XP or Vista)"); + "(must use XP or Vista)."); } // on both XP and Vista, this metric will be 17 when font size is "Normal". // The size of drop-down menus depends on it. int vScrollSize = ::GetSystemMetrics(SM_CXVSCROLL); if (vScrollSize != requiredVScrollSize) { - errors.push_back("Must use normal size fonts (96 dpi)"); + errors.push_back("Must use normal size fonts (96 dpi)."); } - // font smoothing (including ClearType) must be disabled + // ClearType must be disabled, because the rendering is unpredictable. BOOL bFontSmoothing; SystemParametersInfo(SPI_GETFONTSMOOTHING, (UINT)0, (PVOID)&bFontSmoothing, (UINT)0); - if (bFontSmoothing) { - errors.push_back("Font smoothing (ClearType) must be disabled"); + int fontSmoothingType; + SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, (UINT)0, + (PVOID)&fontSmoothingType, (UINT)0); + if (bFontSmoothing && (fontSmoothingType == FE_FONTSMOOTHINGCLEARTYPE)) { + errors.push_back("ClearType must be disabled."); } // Check that we're using the default system fonts @@ -93,9 +96,9 @@ bool TestShellPlatformDelegate::CheckLayoutTestSystemDependencies() { if (system_fonts[i]->lfHeight != requiredFontSize || wcscmp(requiredFont, system_fonts[i]->lfFaceName)) { if (isVista) - errors.push_back("Must use either the Aero or Basic theme"); + errors.push_back("Must use either the Aero or Basic theme."); else - errors.push_back("Must use the default XP theme (Luna)"); + errors.push_back("Must use the default XP theme (Luna)."); break; } } |