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

Unified Diff: Tools/DumpRenderTree/chromium/TestShell.cpp

Issue 14975008: test-shell is outside of the screen when running layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@menupopup
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/DumpRenderTree/chromium/TestShell.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestShell.cpp b/Tools/DumpRenderTree/chromium/TestShell.cpp
index 3b011a746e4ff8772233a7b6d11737ac197a7933..fb5a85ecc27e2c8abeb5e17ce7a0ca881d45ae2c 100644
--- a/Tools/DumpRenderTree/chromium/TestShell.cpp
+++ b/Tools/DumpRenderTree/chromium/TestShell.cpp
@@ -72,6 +72,7 @@ using namespace std;
// Content area size for newly created windows.
static const int testWindowWidth = 800;
static const int testWindowHeight = 600;
+static const int testWindowMargin = 8;
tkent 2013/05/13 21:24:03 should move screenUnavailableBorder in WebViewHost
// The W3C SVG layout tests use a different size than the other layout tests.
static const int SVGTestWindowWidth = 480;
@@ -265,7 +266,7 @@ void TestShell::resizeWindowForTest(WebViewHost* window, const WebURL& url)
width = testWindowWidth;
height = testWindowHeight;
}
- window->setWindowRect(WebRect(0, 0, width + virtualWindowBorder * 2, height + virtualWindowBorder * 2));
+ window->setWindowRect(WebRect(testWindowMargin, testWindowMargin, width + virtualWindowBorder * 2, height + virtualWindowBorder * 2));
}
void TestShell::resetTestController()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698