| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta name="viewport" content="width=device-width, initial-scale=1"> | 2 <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 3 <style> | 3 <style> |
| 4 html { | 4 html { |
| 5 font-family: Ahem; | 5 font-family: Ahem; |
| 6 font-size: 10px; | 6 font-size: 10px; |
| 7 } | 7 } |
| 8 #testArea { | 8 #testArea { |
| 9 position: absolute; | 9 position: absolute; |
| 10 right: 50px; | 10 right: 50px; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 logCounts('GestureTapDown', documents, multiTapNotification, function() { | 122 logCounts('GestureTapDown', documents, multiTapNotification, function() { |
| 123 eventSender.gestureTapDown(targetX, targetY, 30, 30); | 123 eventSender.gestureTapDown(targetX, targetY, 30, 30); |
| 124 }); | 124 }); |
| 125 | 125 |
| 126 logCounts('GestureShowPress', documents, multiTapNotification, function() { | 126 logCounts('GestureShowPress', documents, multiTapNotification, function() { |
| 127 eventSender.gestureShowPress(targetX, targetY, 30, 30); | 127 eventSender.gestureShowPress(targetX, targetY, 30, 30); |
| 128 }); | 128 }); |
| 129 | 129 |
| 130 logCounts('GestureTap', documents, multiTapNotification, function() { | 130 logCounts('GestureTap', documents, multiTapNotification, function() { |
| 131 // We don't want to tap on an existing selection so we clear selections. |
| 132 window.getSelection().empty(); |
| 131 eventSender.gestureTap(targetX, targetY, 1, 30, 30); | 133 eventSender.gestureTap(targetX, targetY, 1, 30, 30); |
| 132 }); | 134 }); |
| 133 | 135 |
| 134 logCounts('GestureScrollBegin', documents, multiTapNotification, function()
{ | 136 logCounts('GestureScrollBegin', documents, multiTapNotification, function()
{ |
| 135 eventSender.gestureTapDown(targetX, targetY, 30, 30); | 137 eventSender.gestureTapDown(targetX, targetY, 30, 30); |
| 136 clearCounts(documents); | 138 clearCounts(documents); |
| 137 eventSender.gestureScrollBegin(targetX, targetY); | 139 eventSender.gestureScrollBegin(targetX, targetY); |
| 138 }); | 140 }); |
| 139 | 141 |
| 140 logCounts('GestureTapCancel', documents, multiTapNotification, function() { | 142 logCounts('GestureTapCancel', documents, multiTapNotification, function() { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 window.internals.settings.setViewportEnabled(false); | 209 window.internals.settings.setViewportEnabled(false); |
| 208 debug('Event on a simple div (desktop viewport)'); | 210 debug('Event on a simple div (desktop viewport)'); |
| 209 debug('---------------------'); | 211 debug('---------------------'); |
| 210 var point = centerOf(document.getElementById('target')); | 212 var point = centerOf(document.getElementById('target')); |
| 211 runTestForDocuments(point.x, point.y, [document]); | 213 runTestForDocuments(point.x, point.y, [document]); |
| 212 debug(''); | 214 debug(''); |
| 213 window.internals.settings.setViewportEnabled(true); | 215 window.internals.settings.setViewportEnabled(true); |
| 214 finishJSTest(); | 216 finishJSTest(); |
| 215 } | 217 } |
| 216 </script> | 218 </script> |
| OLD | NEW |