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

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

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a couple more tests Created 5 years, 7 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 #touchtarget { 7 #touchtarget {
8 background: white; 8 background: white;
9 } 9 }
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 var touchtarget; 34 var touchtarget;
35 var expectedGesturesTotal = 2; 35 var expectedGesturesTotal = 2;
36 var gesturesOccurred = 0; 36 var gesturesOccurred = 0;
37 var scrollAmountX = ['0', '0']; 37 var scrollAmountX = ['0', '0'];
38 var scrollAmountY = ['140', '200']; 38 var scrollAmountY = ['140', '200'];
39 var wheelEventsOccurred = 0; 39 var wheelEventsOccurred = 0;
40 var expectedWheelEventsOccurred = ['0', '0']; 40 var expectedWheelEventsOccurred = ['0', '0'];
41 var scrollEventsOccurred = 0; 41 var scrollEventsOccurred = 0;
42 var expectedScrollEventsOccurred = '1'; 42 var expectedScrollEventsOccurred = '1';
43 var scrolledElement = 'touchtarget.contentDocument.body' 43 var scrolledElement = 'touchtarget.contentDocument.scrollingElement'
44 44
45 function firstGestureScroll() 45 function firstGestureScroll()
46 { 46 {
47 debug("first gesture"); 47 debug("first gesture");
48 eventSender.gestureScrollBegin(12, 150); 48 eventSender.gestureScrollBegin(12, 150);
49 eventSender.gestureScrollUpdate(0, -140); 49 eventSender.gestureScrollUpdate(0, -140);
50 eventSender.gestureScrollEnd(0, 0); 50 eventSender.gestureScrollEnd(0, 0);
51 51
52 // Wait for layout. 52 // Wait for layout.
53 checkScrollOffset(); 53 checkScrollOffset();
(...skipping 26 matching lines...) Expand all
80 firstGestureScroll(); 80 firstGestureScroll();
81 else 81 else
82 exitIfNecessary(); 82 exitIfNecessary();
83 } else { 83 } else {
84 debug("This test requires DumpRenderTree. Touch-scroll the red/green st rip."); 84 debug("This test requires DumpRenderTree. Touch-scroll the red/green st rip.");
85 } 85 }
86 } 86 }
87 </script> 87 </script>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698