Remove NavigatorBase::serviceWorkerIfExists
[WebKit-https.git] / LayoutTests / fast / events / wheelevent-direction-inverted-from-device.html
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="target">Scroll over me</div>
7 <div id="console"></div>
8
9 <script src="../../resources/js-test-pre.js"></script>
10
11 <script>
12 description("This test checks for the existence of the webkitDirectionInvertedFromDevice 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 <script src="../../resources/js-test-post.js"></script>
31
32 </body>
33 </html>