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

Unified Diff: content/shell/webkit_test_controller.cc

Issue 11828028: [content shell] W3C SVG tests need to run in a smaller window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 11 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_win.cc ('k') | content/test/content_browser_test.cc » ('j') | 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 af585b6c83ca742ba988f54d3b63e98ac0e6515f..d1f93f635fedae911ef88a641107d3b1dc0a1335 100644
--- a/content/shell/webkit_test_controller.cc
+++ b/content/shell/webkit_test_controller.cc
@@ -163,12 +163,16 @@ bool WebKitTestController::PrepareForLayoutTest(
content::ShellBrowserContext* browser_context =
static_cast<content::ShellContentBrowserClient*>(
content::GetContentClient()->browser())->browser_context();
+ gfx::Size initial_size;
+ // 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(480, 360);
main_window_ = content::Shell::CreateNewWindow(
browser_context,
GURL(),
NULL,
MSG_ROUTING_NONE,
- NULL);
+ initial_size);
WebContentsObserver::Observe(main_window_->web_contents());
main_window_->LoadURL(test_url);
if (test_url.spec().find("/dumpAsText/") != std::string::npos ||
« no previous file with comments | « content/shell/shell_win.cc ('k') | content/test/content_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698