OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <script src="../resources/input-modifiers.js"></script> | 3 <script src="../resources/input-modifiers.js"></script> |
4 <style> | 4 <style> |
5 div.box { | 5 div.box { |
6 margin: 10px; | 6 margin: 10px; |
7 padding: 50px; | 7 padding: 50px; |
8 float: left; | 8 float: left; |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 if (!checkKeyModifiers) { | 60 if (!checkKeyModifiers) { |
61 | 61 |
62 if (lastPointerEvent.type=="pointerenter" || lastPointerEvent.type=="p
ointerleave") { | 62 if (lastPointerEvent.type=="pointerenter" || lastPointerEvent.type=="p
ointerleave") { |
63 shouldBeFalse("lastPointerEvent.bubbles"); | 63 shouldBeFalse("lastPointerEvent.bubbles"); |
64 shouldBeFalse("lastPointerEvent.cancelable"); | 64 shouldBeFalse("lastPointerEvent.cancelable"); |
65 } else { | 65 } else { |
66 shouldBeTrue("lastPointerEvent.bubbles"); | 66 shouldBeTrue("lastPointerEvent.bubbles"); |
67 shouldBeTrue("lastPointerEvent.cancelable"); | 67 shouldBeTrue("lastPointerEvent.cancelable"); |
68 } | 68 } |
69 | 69 |
70 shouldBeEqualToNumber("lastPointerEvent.pointerId", 0); | 70 shouldBeEqualToNumber("lastPointerEvent.pointerId", 1); |
71 // TODO(crbug.com/557817): linux_chromium_rel_ng fails here, sets to e
mpty string. | 71 // TODO(crbug.com/557817): linux_chromium_rel_ng fails here, sets to e
mpty string. |
72 // shouldBeEqualToString("lastPointerEvent.pointerType", "mouse"); | 72 // shouldBeEqualToString("lastPointerEvent.pointerType", "mouse"); |
73 shouldBeTrue("lastPointerEvent.isPrimary"); | 73 shouldBeTrue("lastPointerEvent.isPrimary"); |
74 | 74 |
75 numericAttributes.forEach(function(attribute) { | 75 numericAttributes.forEach(function(attribute) { |
76 shouldBeEqualToNumber("lastPointerEvent." + attribute, eval("event."
+ attribute)); | 76 shouldBeEqualToNumber("lastPointerEvent." + attribute, eval("event."
+ attribute)); |
77 }); | 77 }); |
78 | 78 |
79 } else { | 79 } else { |
80 | 80 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 eventSender.mouseMoveTo(rect.left - 5, rect.top - 5); | 128 eventSender.mouseMoveTo(rect.left - 5, rect.top - 5); |
129 } | 129 } |
130 | 130 |
131 init(); | 131 init(); |
132 if (window.eventSender) | 132 if (window.eventSender) |
133 runTests(); | 133 runTests(); |
134 else | 134 else |
135 debug("This test requires eventSender"); | 135 debug("This test requires eventSender"); |
136 | 136 |
137 </script> | 137 </script> |
OLD | NEW |