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

Side by Side Diff: LayoutTests/fast/events/hit-test-counts.html

Issue 603593002: Added missing arguments for gestureScrollEnd. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #testArea { 3 #testArea {
4 position: absolute; 4 position: absolute;
5 right: 50px; 5 right: 50px;
6 top: 50px; 6 top: 50px;
7 } 7 }
8 #target { 8 #target {
9 width: 10px; 9 width: 10px;
10 height: 10px; 10 height: 10px;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 clearCounts(documents); 88 clearCounts(documents);
89 eventSender.gestureScrollBegin(targetX, targetY); 89 eventSender.gestureScrollBegin(targetX, targetY);
90 logCounts('GestureScrollBegin', documents); 90 logCounts('GestureScrollBegin', documents);
91 91
92 eventSender.gestureTapCancel(targetX, targetY); 92 eventSender.gestureTapCancel(targetX, targetY);
93 logCounts('GestureTapCancel', documents); 93 logCounts('GestureTapCancel', documents);
94 94
95 eventSender.gestureScrollUpdate(0, 5); 95 eventSender.gestureScrollUpdate(0, 5);
96 logCounts('GestureScrollUpdate', documents); 96 logCounts('GestureScrollUpdate', documents);
97 97
98 eventSender.gestureScrollEnd(); 98 eventSender.gestureScrollEnd(0, 5);
99 logCounts('GestureScrollEnd', documents); 99 logCounts('GestureScrollEnd', documents);
100 } 100 }
101 101
102 function centerOf(element) { 102 function centerOf(element) {
103 var targetRect = element.getBoundingClientRect(); 103 var targetRect = element.getBoundingClientRect();
104 return { 104 return {
105 x: targetRect.left + targetRect.width / 2, 105 x: targetRect.left + targetRect.width / 2,
106 y: targetRect.top + targetRect.height / 2 106 y: targetRect.top + targetRect.height / 2
107 }; 107 };
108 } 108 }
(...skipping 14 matching lines...) Expand all
123 sendEvents(point.x, point.y, [document, doc2, doc3]); 123 sendEvents(point.x, point.y, [document, doc2, doc3]);
124 debug(''); 124 debug('');
125 125
126 debug('Event near boundary of two iframes'); 126 debug('Event near boundary of two iframes');
127 debug('---------------------'); 127 debug('---------------------');
128 var rect = frame.getBoundingClientRect(); 128 var rect = frame.getBoundingClientRect();
129 sendEvents(rect.left + 3, rect.top + 3, [document, doc2, doc3]); 129 sendEvents(rect.left + 3, rect.top + 3, [document, doc2, doc3]);
130 debug(''); 130 debug('');
131 } 131 }
132 </script> 132 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698