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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.cpp

Issue 2096633002: Adds scroll position/scale emulation to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Emulator using GC, moved to FrameHost, addressed other comments. Created 4 years, 5 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: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index a32e4562bcd64f4aa8be19556a92a42d1114d5fa..963379d42ede7a0d42f4a1526c22b5cc9aeda07d 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -1076,7 +1076,7 @@ TEST_F(WebViewTest, ExitingDeviceEmulationResetsPageScale)
float pageScaleExpected = webViewImpl->pageScaleFactor();
WebDeviceEmulationParams params;
- params.screenPosition = WebDeviceEmulationParams::Desktop;
+ params.screenPosition = WebDeviceEmulationParams::Mobile;
bokan 2016/07/06 14:26:31 Why did this have to change?
Eric Seckler 2016/07/11 10:38:44 Reverted.
params.deviceScaleFactor = 0;
params.fitToView = false;
params.offset = WebFloatPoint();

Powered by Google App Engine
This is Rietveld 408576698