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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-editable.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 #touchtarget { 8 #touchtarget {
9 background: white; 9 background: white;
10 } 10 }
(...skipping 23 matching lines...) Expand all
34 34
35 var touchtarget; 35 var touchtarget;
36 var expectedGesturesTotal = 2; 36 var expectedGesturesTotal = 2;
37 var gesturesOccurred = 0; 37 var gesturesOccurred = 0;
38 var scrollAmountX = ['0', '0']; 38 var scrollAmountX = ['0', '0'];
39 var scrollAmountY = ['140', '200']; 39 var scrollAmountY = ['140', '200'];
40 var wheelEventsOccurred = 0; 40 var wheelEventsOccurred = 0;
41 var expectedWheelEventsOccurred = ['0', '0']; 41 var expectedWheelEventsOccurred = ['0', '0'];
42 var scrollEventsOccurred = 0; 42 var scrollEventsOccurred = 0;
43 var expectedScrollEventsOccurred = '1'; 43 var expectedScrollEventsOccurred = '1';
44 var scrolledElement = 'touchtarget.contentDocument.body' 44 var scrolledElement = 'touchtarget.contentDocument.documentElement'
45 45
46 function firstGestureScroll() 46 function firstGestureScroll()
47 { 47 {
48 debug("first gesture"); 48 debug("first gesture");
49 eventSender.gestureScrollBegin(12, 150); 49 eventSender.gestureScrollBegin(12, 150);
50 eventSender.gestureScrollUpdate(0, -140); 50 eventSender.gestureScrollUpdate(0, -140);
51 eventSender.gestureScrollEnd(0, 0); 51 eventSender.gestureScrollEnd(0, 0);
52 52
53 // Wait for layout. 53 // Wait for layout.
54 checkScrollOffset(); 54 checkScrollOffset();
(...skipping 26 matching lines...) Expand all
81 firstGestureScroll(); 81 firstGestureScroll();
82 else 82 else
83 exitIfNecessary(); 83 exitIfNecessary();
84 } else { 84 } else {
85 debug("This test requires DumpRenderTree. Touch-scroll the red/green st rip."); 85 debug("This test requires DumpRenderTree. Touch-scroll the red/green st rip.");
86 } 86 }
87 } 87 }
88 </script> 88 </script>
89 </body> 89 </body>
90 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698