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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/scroll-in-scaled-page-with-overflow-hidden.html

Issue 1812653002: Scale the deltaX/deltaY on the mouse wheel events to be consistent with the compositor implementati… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary arguments from call Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 <style> 1 <style>
2 html, body { margin:0; overflow: hidden; } 2 html, body { margin:0; overflow: hidden; }
3 </style> 3 </style>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 5
6 <div> 6 <div>
7 This tests that a usually overflow: hidden viewport should be scrollable when 7 This tests that a usually overflow: hidden viewport should be scrollable when
8 scaled. Otherwise, you can't get to content you would have been able to get to 8 scaled. Otherwise, you can't get to content you would have been able to get to
9 had you not been zoomed it. 9 had you not been zoomed it.
10 </div> 10 </div>
(...skipping 16 matching lines...) Expand all
27 27
28 window.internals.setPageScaleFactor(2); 28 window.internals.setPageScaleFactor(2);
29 29
30 // Note that with ScrollTopLeftInterop enabled, document.scrollingElemen t is 30 // Note that with ScrollTopLeftInterop enabled, document.scrollingElemen t is
31 // null because document.body is potentially scrollable (with overflow:h idden 31 // null because document.body is potentially scrollable (with overflow:h idden
32 // the box can still be scrolled programmatically). 32 // the box can still be scrolled programmatically).
33 shouldBe("internals.visualViewportScrollY()", "0"); 33 shouldBe("internals.visualViewportScrollY()", "0");
34 34
35 if (window.eventSender) { 35 if (window.eventSender) {
36 eventSender.mouseMoveTo(100, 100); 36 eventSender.mouseMoveTo(100, 100);
37 eventSender.mouseScrollBy(0, -5); 37 eventSender.mouseScrollBy(0, -10);
38 } 38 }
39 39
40 shouldBecomeEqual("internals.visualViewportScrollY()", "200", finishJSTe st); 40 shouldBecomeEqual("internals.visualViewportScrollY()", "200", finishJSTe st);
41 })(); 41 })();
42 </script> 42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698