Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1210)

Unified Diff: content/public/test/browser_test_base.cc

Issue 1762883002: Disable window occlusion APIs when running browser tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_base.cc
diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
index 2e6500a8830a2763cee56e3bf4b2ee8f908c1776..7b7513aabb472ba4d9075127381132ea4323aed3 100644
--- a/content/public/test/browser_test_base.cc
+++ b/content/public/test/browser_test_base.cc
@@ -200,6 +200,11 @@ void BrowserTestBase::SetUp() {
if (use_software_compositing_)
command_line->AppendSwitch(switches::kDisableGpu);
+ // The layout of windows on screen is unpredictable during tests, so disable
+ // occlusion when running browser tests.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kDisableBackgroundingOccludedWindowsForTesting);
+
#if defined(USE_AURA)
// Most tests do not need pixel output, so we don't produce any. The command
// line can override this behaviour to allow for visual debugging.
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698