| 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 shouldBeEqualToString("lastPointerEvent.pointerType", "mouse"); | 71 shouldBeEqualToString("lastPointerEvent.pointerType", "mouse"); |
| 72 shouldBeTrue("lastPointerEvent.isPrimary"); | 72 shouldBeTrue("lastPointerEvent.isPrimary"); |
| 73 | 73 |
| 74 numericAttributes.forEach(function(attribute) { | 74 numericAttributes.forEach(function(attribute) { |
| 75 shouldBeEqualToNumber("lastPointerEvent." + attribute, eval("event."
+ attribute)); | 75 shouldBeEqualToNumber("lastPointerEvent." + attribute, eval("event."
+ attribute)); |
| 76 }); | 76 }); |
| 77 | 77 |
| 78 } else { | 78 } else { |
| 79 | 79 |
| 80 forEachModifier(function(attr, modifierName) { | 80 forEachModifier(function(attr, modifierName) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 eventSender.mouseMoveTo(rect.left - 5, rect.top - 5); | 127 eventSender.mouseMoveTo(rect.left - 5, rect.top - 5); |
| 128 } | 128 } |
| 129 | 129 |
| 130 init(); | 130 init(); |
| 131 if (window.eventSender) | 131 if (window.eventSender) |
| 132 runTests(); | 132 runTests(); |
| 133 else | 133 else |
| 134 debug("This test requires eventSender"); | 134 debug("This test requires eventSender"); |
| 135 | 135 |
| 136 </script> | 136 </script> |
| OLD | NEW |