Commit 35d4d535 authored by Alison Maher's avatar Alison Maher Committed by Commit Bot

Update WebThemeEngineImplDefaultBrowserTest.GetSystemColor

WebThemeEngineImplDefaultBrowserTest.GetSystemColor fails
non-deterministically on Windows2008ServerR2. To fix this, the test is
updated to avoid running on server version types.

Bug: 1010924
Change-Id: Ic6d28ab03204452b2441bd215a494b118aa0e847
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876750Reviewed-by: default avatarKevin Babbitt <kbabbitt@microsoft.com>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#709540}
parent 412bd0e3
...@@ -19,11 +19,13 @@ class WebThemeEngineImplDefaultBrowserTest : public ContentBrowserTest { ...@@ -19,11 +19,13 @@ class WebThemeEngineImplDefaultBrowserTest : public ContentBrowserTest {
#if defined(OS_WIN) #if defined(OS_WIN)
IN_PROC_BROWSER_TEST_F(WebThemeEngineImplDefaultBrowserTest, GetSystemColor) { IN_PROC_BROWSER_TEST_F(WebThemeEngineImplDefaultBrowserTest, GetSystemColor) {
// The test non-deterministically fails on Windows Server 2008 builders due to // The test non-deterministically fails on Windows-2008ServerR2 builders due
// a difference in the default theme. As a result, only run the test on // to a difference in the default theme. As a result, only run the test on
// Windows version 7 and above. // non-server versions.
if (base::win::GetVersion() < base::win::Version::WIN7) if (base::win::OSInfo::GetInstance()->version_type() ==
base::win::VersionType::SUITE_SERVER) {
return; return;
}
GURL url( GURL url(
"data:text/html," "data:text/html,"
"<!doctype html><html>" "<!doctype html><html>"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment