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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-scroll-amount.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-scroll-amount.html b/third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-scroll-amount.html
index bb45364d942264d103b3420842cd1c824e047b8d..6e7841e264cf081faffc022d836febd94fcdbe89 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-scroll-amount.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/static/mousewheel-scroll-amount.html
@@ -9,7 +9,6 @@
<script>
window.jsTestIsAsync = true;
- var dpr = window.devicePixelRatio;
description("This test ensures that mouse wheel ticks scrolls the right number of pixels in high dpi mode.");
@@ -20,7 +19,7 @@
eventSender.mouseMoveTo(20, 20);
// 1 tick should move 40px.
- eventSender.mouseScrollBy(-2 * dpr, -2 * dpr);
+ eventSender.mouseScrollBy(-2, -2);
shouldBecomeEqual("document.scrollingElement.scrollTop == 80 && " +
"document.scrollingElement.scrollLeft == 80", "true", finishJSTest);
@@ -38,7 +37,7 @@
eventSender.mouseMoveTo(20, 20);
// 1 tick should move 40px.
- eventSender.mouseScrollBy(-dpr, -dpr);
+ eventSender.mouseScrollBy(-1, -1);
// 40px per tick.
shouldBecomeEqual("document.scrollingElement.scrollTop == 40 && " +
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/hidpi/static/gesture-scroll-amount.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698