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

Side by Side Diff: LayoutTests/fast/scroll-behavior/precise-delta-no-animate.html

Issue 831393003: Plumb hasPreciseScrollingDeltas into ScrollGranularity for overflow scrolls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments. Created 5 years, 11 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 | LayoutTests/fast/scroll-behavior/precise-delta-no-animate-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 <style>
3
4 #container {
5 width: 200px;
6 height: 200px;
7 overflow: scroll;
8 }
9
10 #content {
11 width: 7500px;
12 height: 7500px;
13 background-color: blue;
14 }
15
16 </style>
17 <script src="../../resources/js-test.js"></script>
18 <div id="container">
19 <div id="content"></div>
20 </div>
21 <div id="console"></div>
22 <script>
23
24 jsTestIsAsync = true;
25 element = document.getElementById("container");
26
27 function runTest() {
28 testRunner.dumpAsText();
Rick Byers 2015/01/07 22:10:47 note that this line is also redundant (hence "two
29
30 element.addEventListener("scroll", function() {
31 shouldBe("element.scrollTop", "80");
32 finishJSTest();
33 });
34
35 eventSender.mouseMoveTo(100, 100);
36 eventSender.mouseScrollBy(0, -2, /* paged */ false,
37 /* has_precise_scrolling_deltas */ true);
38 }
39
40 description("Tests that a WebMouseWheelEvent with hasPreciseScrollingDeltas " +
41 "does not produce an animated scroll");
42
43 if (window.eventSender)
44 runTest();
45 else
46 debug("FAIL: This test requires window.eventSender.");
47
48 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/scroll-behavior/precise-delta-no-animate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698