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

Unified Diff: content/test/content_browser_test.cc

Issue 10941011: Rewrite layout_browsertests to use content_shell --dump-render-tree to execute layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 3 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/test/content_browser_test.cc
diff --git a/content/test/content_browser_test.cc b/content/test/content_browser_test.cc
index a86569f9da975f76f6eccbc46fecf7a4322f3a1c..7173515261e24711953489d542228a26e8e0ccfe 100644
--- a/content/test/content_browser_test.cc
+++ b/content/test/content_browser_test.cc
@@ -93,8 +93,10 @@ void ContentBrowserTest::TearDown() {
}
void ContentBrowserTest::RunTestOnMainThreadLoop() {
- CHECK_EQ(Shell::windows().size(), 1u);
- shell_ = Shell::windows()[0];
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
+ CHECK_EQ(Shell::windows().size(), 1u);
+ shell_ = Shell::windows()[0];
+ }
#if defined(OS_MACOSX)
// On Mac, without the following autorelease pool, code which is directly

Powered by Google App Engine
This is Rietveld 408576698