Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mouse-event-source-device-event-sender.html
blob4dbec6e35acee09f2d6c5e0e8703861675ef6d84
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) {
7 debug(event.type);
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();
23 } else {
24 debug('This test requires eventSender.');
27 </script>