1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
2 <script src=
"../../resources/js-test.js"></script>
3 <script type=
"text/javascript">
4 description('Test that mouse events from real mouse device should have a sourceCapabilities and its firesTouchEvents should be false.');
6 function mouseHandler(event
) {
8 shouldBeNonNull("event.sourceCapabilities");
9 shouldBeFalse("event.sourceCapabilities.firesTouchEvents");
12 if (window
.eventSender
) {
13 for (var evt
of ['mousemove', 'mousedown', 'mouseup', 'click', 'dblclick']) {
14 document
.addEventListener(evt
, mouseHandler
);
17 eventSender
.mouseMoveTo(1,1);
18 eventSender
.mouseDown();
19 eventSender
.mouseUp();
20 eventSender
.mouseDown();
21 eventSender
.mouseUp();
24 debug('This test requires eventSender.');