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

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: Created 4 years, 10 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
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..ee222a79d0d88e379d692c6311cb070ef9d4f321 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, so disable
Noel Gordon 2016/03/04 01:57:32 "during" -> "during tests" ?
ccameron 2016/03/06 23:09:08 Thanks -- fixed.
+ // occlusion when running browser tests.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kDisableBackgroundingOccludedWindows);
+
#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.
« content/public/common/content_switches.h ('K') | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698