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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-page.html

Issue 891523002: ScrollTopLeftInterop should not be marked experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../../resources/js-test.js"></script> 4 <script src="../../../../resources/js-test.js"></script>
5 <script src="resources/gesture-helpers.js"></script> 5 <script src="resources/gesture-helpers.js"></script>
6 <style type="text/css"> 6 <style type="text/css">
7 ::-webkit-scrollbar { 7 ::-webkit-scrollbar {
8 width: 0px; 8 width: 0px;
9 height: 0px; 9 height: 0px;
10 } 10 }
(...skipping 29 matching lines...) Expand all
40 <div id="console"></div> 40 <div id="console"></div>
41 <script type="text/javascript"> 41 <script type="text/javascript">
42 42
43 var expectedGesturesTotal = 2; 43 var expectedGesturesTotal = 2;
44 var gesturesOccurred = 0; 44 var gesturesOccurred = 0;
45 var scrollAmountX = ['0', '0']; 45 var scrollAmountX = ['0', '0'];
46 var scrollAmountY = ['70', '130']; 46 var scrollAmountY = ['70', '130'];
47 var wheelEventsOccurred = 0; 47 var wheelEventsOccurred = 0;
48 var expectedWheelEventsOccurred = ['0', '0']; 48 var expectedWheelEventsOccurred = ['0', '0'];
49 var scrollEventsOccurred = 0; 49 var scrollEventsOccurred = 0;
50 var scrolledElement = 'document.documentElement' 50 var scrolledElement = 'document.body'
51 var scrollEventsOccurred = 0; 51 var scrollEventsOccurred = 0;
52 var expectedScrollEventsOccurred = '1'; 52 var expectedScrollEventsOccurred = '1';
53 53
54 function recordScroll(event) { 54 function recordScroll(event) {
55 debug('scroll event ' + scrollEventsOccurred + '+> ' + event.target); 55 debug('scroll event ' + scrollEventsOccurred + '+> ' + event.target);
56 scrollEventsOccurred++; 56 scrollEventsOccurred++;
57 57
58 if (window.eventSender) { 58 if (window.eventSender) {
59 // Because scroll events arrive asynchronously, only one will ar rive. 59 // Because scroll events arrive asynchronously, only one will ar rive.
60 if (gesturesOccurred == expectedGesturesTotal) { 60 if (gesturesOccurred == expectedGesturesTotal) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } else { 128 } else {
129 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 129 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
130 } 130 }
131 } 131 }
132 </script> 132 </script>
133 133
134 134
135 135
136 </body> 136 </body>
137 </html> 137 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698