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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html

Issue 2093343002: Scale the emulated event in EventSender when use-zoom-for-dsf is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scale the emulated event in EventSender when use-zoom-for-dsf is enabled Created 4 years, 6 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/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html b/third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html
index 80c1fc725f87f048165c80f0587a3e12382bd1f7..a0b13b6e8ef28f559d56e43a83ee64b71256c22e 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html
@@ -12,8 +12,6 @@ var expectedScrollsTotal = 2;
var scrollsOccurred = 0;
var scrollAmountX = ['1', '3'];
var scrollAmountY = ['1', '3'];
-/* TODO(oshima): Move the scaling to eventSender */
-var dpr = window.devicePixelRatio;
function checkScrollOffset()
{
@@ -38,7 +36,7 @@ function firstGestureScrollSequence()
debug("first gesture");
eventSender.gestureScrollBegin(50, 50);
- eventSender.gestureScrollUpdate(-dpr, -dpr);
+ eventSender.gestureScrollUpdate(-1, -1);
eventSender.gestureScrollEnd(0, 0);
// Wait for layout.
@@ -50,7 +48,7 @@ function secondGestureScrollSequence()
debug("second gesture");
eventSender.gestureScrollBegin(50, 50);
- eventSender.gestureScrollUpdate(-2 * dpr, -2 * dpr);
+ eventSender.gestureScrollUpdate(-2, -2);
eventSender.gestureScrollEnd(0, 0);
// Wait for layout.
« no previous file with comments | « content/test/layouttest_support.cc ('k') | third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-scroll-amount.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698