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

Unified Diff: content/shell/webkit_test_controller.cc

Issue 15702006: [content shell] add support for running headless on mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 7 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/shell/shell_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_controller.cc
diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc
index 7239ed1045438a0c655f41603d59b0eefbec2e68..a07c83e62260edb7cab5d181a57b0fb8c00cbd72 100644
--- a/content/shell/webkit_test_controller.cc
+++ b/content/shell/webkit_test_controller.cc
@@ -38,9 +38,6 @@ const int kTestTimeoutMilliseconds = 30 * 1000;
// 0x20000000ms is big enough for the purpose to avoid timeout in debugging.
const int kCloseEnoughToInfinity = 0x20000000;
-const int kTestWindowWidthDip = 800;
-const int kTestWindowHeightDip = 600;
-
const int kTestSVGWindowWidthDip = 480;
const int kTestSVGWindowHeightDip = 360;
@@ -210,7 +207,8 @@ bool WebKitTestController::PrepareForLayoutTest(
ShellContentBrowserClient::Get()->browser_context();
if (test_url.spec().find("compositing/") != std::string::npos)
is_compositing_test_ = true;
- initial_size_ = gfx::Size(kTestWindowWidthDip, kTestWindowHeightDip);
+ initial_size_ = gfx::Size(
+ Shell::kDefaultTestWindowWidthDip, Shell::kDefaultTestWindowHeightDip);
// The W3C SVG layout tests use a different size than the other layout tests.
if (test_url.spec().find("W3C-SVG-1.1") != std::string::npos)
initial_size_ = gfx::Size(kTestSVGWindowWidthDip, kTestSVGWindowHeightDip);
« no previous file with comments | « content/shell/shell_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698