OLD | NEW |
---|---|
(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> | |
OLD | NEW |