4 <script src=
"../../resources/js-test.js"></script>
6 window
.jsTestIsAsync
= true;
9 var div
= document
.querySelector('div');
10 if (window
.eventSender
) {
11 eventSender
.mouseMoveTo(div
.offsetLeft
+ 5, div
.offsetTop
+ 5);
12 eventSender
.mouseScrollBy(0,120);
14 debug("FAIL: This test requires window.eventSender.");
19 function wheelHandler(e
) {
22 debug("'Real' MouseWheel events should not be dispatched on the text node, but instead on its parent.");
23 shouldBeEqualToString('theEvent.target.nodeName', 'DIV');
27 window
.onload = function () {
28 var div
= document
.querySelector('div');
29 div
.addEventListener('mousewheel', wheelHandler
);
35 <div>This is a div containing text. Wheel events originating on the text
36 node should target the div.
</div>