Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html

Issue 1426643008: Cleaning up PointerIdManager and add id re-mapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a link error in the shared_library case Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698