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

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: Fix EXPECT_EQ compilation error on Android Created 5 years 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 // 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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698