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

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: Remove testRunner.dumpAsText() 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 element.addEventListener("scroll", function() {
29 shouldBe("element.scrollTop", "80");
30 finishJSTest();
31 });
32
33 eventSender.mouseMoveTo(100, 100);
34 eventSender.mouseScrollBy(0, -2, /* paged */ false,
35 /* has_precise_scrolling_deltas */ true);
36 }
37
38 description("Tests that a WebMouseWheelEvent with hasPreciseScrollingDeltas " +
39 "does not produce an animated scroll");
40
41 if (window.eventSender)
42 runTest();
43 else
44 debug("FAIL: This test requires window.eventSender.");
45
46 </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