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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/wheel-in-scrollbar.html

Issue 1804063002: Fix wheel scrolling over scrollbar not scrolling page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made test async 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/wheel-in-scrollbar-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 window.jsTestIsAsync = true;
5
6 description("Test that wheel scrolling over the page scrollbar scrolls " +
7 "the page. We also placed an overflow div below the " +
8 "scrollbar to make sure we target the page and not the div " +
9 "in that case.");
10
11 var overflowDiv;
12
13 window.onload = function() {
14 if (!window.testRunner || !window.eventSender)
15 return;
16
17 internals.settings.setScrollAnimatorEnabled(false);
18
19 overflowDiv = document.getElementById('overflowDiv');
20
21 // Move the mouse over the vertical scrollbar.
22 eventSender.mouseMoveTo(790, 300);
23
24 // Scroll down precisely by 30 px.
25 eventSender.continuousMouseScrollBy(0, -30, false, true);
26
27 shouldBe('window.scrollY', '30');
28 shouldBe('overflowDiv.scrollTop', '0');
29 finishJSTest();
30 }
31 </script>
32
33 <body style="margin:0">
34 <div id="overflowDiv" style="width:1000px; height:500px; overflow:scroll">
35 <div style="height: 1000px"></div>
36 </div>
37 <div style="height: 1000px"></div>
38 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/wheel-in-scrollbar-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698