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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/mouse-event-buttons-attribute.html

Issue 1602443006: Set the correct buttons for long press action (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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 <style> 2 <style>
3 #target { 3 #target {
4 width: 100px; 4 width: 100px;
5 height: 100px; 5 height: 100px;
6 background: blue; 6 background: blue;
7 position: absolute; 7 position: absolute;
8 left: 0px; 8 left: 0px;
9 top: 0px; 9 top: 0px;
10 } 10 }
(...skipping 20 matching lines...) Expand all
31 { initialButtons: [], action: doubleClickAction }, 31 { initialButtons: [], action: doubleClickAction },
32 { initialButtons: [R], action: clickAction }, 32 { initialButtons: [R], action: clickAction },
33 { initialButtons: [M, R], action: clickAction }, 33 { initialButtons: [M, R], action: clickAction },
34 { initialButtons: [L, M, R], action: moveAction }, 34 { initialButtons: [L, M, R], action: moveAction },
35 { initialButtons: [], action: rightClickAction, showContextMenuOnMouseU p: false }, 35 { initialButtons: [], action: rightClickAction, showContextMenuOnMouseU p: false },
36 { initialButtons: [], action: rightClickAction, showContextMenuOnMouseU p: true }, 36 { initialButtons: [], action: rightClickAction, showContextMenuOnMouseU p: true },
37 { initialButtons: [L, R], action: wheelAction }, 37 { initialButtons: [L, R], action: wheelAction },
38 { initialButtons: [], action: doubleTapAction }, 38 { initialButtons: [], action: doubleTapAction },
39 { initialButtons: [], action: tapAction }, 39 { initialButtons: [], action: tapAction },
40 { initialButtons: [], action: longPressAction, showContextMenuOnMouseUp : false }, 40 { initialButtons: [], action: longPressAction, showContextMenuOnMouseUp : false },
41
42 //TODO(nzolghadr): crbug.com/576281 "buttons" field should be set in mousedown and contextmenu events
43 { initialButtons: [], action: longPressAction, showContextMenuOnMouseUp : true }, 41 { initialButtons: [], action: longPressAction, showContextMenuOnMouseUp : true },
44
45 { initialButtons: [], action: longTapAction, showContextMenuOnMouseUp: false }, 42 { initialButtons: [], action: longTapAction, showContextMenuOnMouseUp: false },
46 { initialButtons: [], action: longTapAction, showContextMenuOnMouseUp: true }, 43 { initialButtons: [], action: longTapAction, showContextMenuOnMouseUp: true },
47 { initialButtons: [], action: dragDropAction }, 44 { initialButtons: [], action: dragDropAction },
48 { initialButtons: [R], action: dragDropAction }, 45 { initialButtons: [R], action: dragDropAction },
49 { initialButtons: [M, R], action: dragDropAction }, 46 { initialButtons: [M, R], action: dragDropAction },
50 ]; 47 ];
51 48
52 function moveAction() 49 function moveAction()
53 { 50 {
54 eventSender.mouseMoveTo(-1, -1); 51 eventSender.mouseMoveTo(-1, -1);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 154 }
158 } 155 }
159 156
160 init(); 157 init();
161 if (window.eventSender) 158 if (window.eventSender)
162 runTests(); 159 runTests();
163 else 160 else
164 debug("This test requires eventSender"); 161 debug("This test requires eventSender");
165 162
166 </script> 163 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698