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

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

Issue 25039006: document.documentElement.scrollTop/Left is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: document.documentElement.scrollTop/Left is zero Created 7 years, 2 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 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css">
5 <script src="../../../js/resources/js-test-pre.js"></script> 5 <script src="../../../js/resources/js-test-pre.js"></script>
6 <script src="resources/gesture-helpers.js"></script> 6 <script src="resources/gesture-helpers.js"></script>
7 <style type="text/css"> 7 <style type="text/css">
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 width: 0px; 9 width: 0px;
10 height: 0px; 10 height: 0px;
(...skipping 30 matching lines...) Expand all
41 <div id="console"></div> 41 <div id="console"></div>
42 <script type="text/javascript"> 42 <script type="text/javascript">
43 43
44 var expectedGesturesTotal = 2; 44 var expectedGesturesTotal = 2;
45 var gesturesOccurred = 0; 45 var gesturesOccurred = 0;
46 var scrollAmountX = ['0', '0']; 46 var scrollAmountX = ['0', '0'];
47 var scrollAmountY = ['70', '130']; 47 var scrollAmountY = ['70', '130'];
48 var wheelEventsOccurred = 0; 48 var wheelEventsOccurred = 0;
49 var expectedWheelEventsOccurred = ['0', '0']; 49 var expectedWheelEventsOccurred = ['0', '0'];
50 var scrollEventsOccurred = 0; 50 var scrollEventsOccurred = 0;
51 var scrolledElement = 'document.body' 51 var scrolledElement = 'document.documentElement'
52 var scrollEventsOccurred = 0; 52 var scrollEventsOccurred = 0;
53 var expectedScrollEventsOccurred = '1'; 53 var expectedScrollEventsOccurred = '1';
54 54
55 function recordScroll(event) { 55 function recordScroll(event) {
56 debug('scroll event ' + scrollEventsOccurred + '+> ' + event.target); 56 debug('scroll event ' + scrollEventsOccurred + '+> ' + event.target);
57 scrollEventsOccurred++; 57 scrollEventsOccurred++;
58 58
59 if (window.eventSender) { 59 if (window.eventSender) {
60 // Because scroll events arrive asynchronously, only one will ar rive. 60 // Because scroll events arrive asynchronously, only one will ar rive.
61 if (gesturesOccurred == expectedGesturesTotal) { 61 if (gesturesOccurred == expectedGesturesTotal) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } else { 129 } else {
130 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 130 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
131 } 131 }
132 } 132 }
133 </script> 133 </script>
134 134
135 135
136 136
137 </body> 137 </body>
138 </html> 138 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698