| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |