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

Side by Side Diff: LayoutTests/fast/events/wheelevent-direction-inverted-from-device.html

Issue 440963002: Remove WheelEvent.webkitDirectionInvertedFromDevice (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/events/wheelevent-direction-inverted-from-device-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 <html>
3 <body>
4
5 <p id="description"></p>
6 <div style="width:100px; height:80px; background-color:green; color:white" id="t arget">Scroll over me</div>
7 <div id="console"></div>
8
9 <script src="../../resources/js-test.js"></script>
10
11 <script>
12 description("This test checks for the existence of the webkitDirectionInvertedFr omDevice property in the WheelEvent.");
13 var t = document.getElementById("target");
14 var c = document.getElementById('console');
15 var result = undefined;
16 function scrollHandler(event) {
17 result = event.webkitDirectionInvertedFromDevice;
18 event.preventDefault();
19 };
20 t.addEventListener('mousewheel', scrollHandler, false);
21
22 if (window.testRunner && window.eventSender) {
23 debug("sending scroll event to green target");
24 eventSender.mouseMoveTo(t.offsetLeft + 10, t.offsetTop + 10);
25 eventSender.continuousMouseScrollBy(0,10);
26 shouldBeTrue('result != undefined');
27 }
28 </script>
29
30
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/wheelevent-direction-inverted-from-device-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698