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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.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 7
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 width: 0px; 9 width: 0px;
10 height: 0px; 10 height: 0px;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 var wheelEventsOccurred = 0; 60 var wheelEventsOccurred = 0;
61 var expectedWheelEventsOccurred = ['0']; 61 var expectedWheelEventsOccurred = ['0'];
62 var scrollEventsOccurred = 0; 62 var scrollEventsOccurred = 0;
63 var scrolledElement = 'movedbox'; 63 var scrolledElement = 'movedbox';
64 var scrollEventsOccurred = 0; 64 var scrollEventsOccurred = 0;
65 var expectedScrollEventsOccurred = '1'; 65 var expectedScrollEventsOccurred = '1';
66 66
67 function firstGestureScroll() 67 function firstGestureScroll()
68 { 68 {
69 iframe = touchtarget; 69 iframe = touchtarget;
70 iframeBody = iframe.contentDocument.body; 70 iframeScrollingElement = iframe.contentDocument.scrollingElement;
71 iframeDocumentElement = iframe.contentDocument.documentElement;
72 71
73 debug("first gesture"); 72 debug("first gesture");
74 eventSender.gestureScrollBegin(10, 72); 73 eventSender.gestureScrollBegin(10, 72);
75 // Prevent scroll to propagate by passing true for third parameter 74 // Prevent scroll to propagate by passing true for third parameter
76 eventSender.gestureScrollUpdate(0, -700, true); 75 eventSender.gestureScrollUpdate(0, -700, true);
77 eventSender.gestureScrollUpdate(0, -100, true); 76 eventSender.gestureScrollUpdate(0, -100, true);
78 eventSender.gestureScrollUpdate(0, -70, true); 77 eventSender.gestureScrollUpdate(0, -70, true);
79 eventSender.gestureScrollUpdate(0, -10, true); 78 eventSender.gestureScrollUpdate(0, -10, true);
80 eventSender.gestureScrollEnd(0, 0); 79 eventSender.gestureScrollEnd(0, 0);
81 80
82 // Make sure the actual iframe got fully scrolled 81 // Make sure the actual iframe got fully scrolled
83 shouldBe('iframeBody.scrollHeight - iframeBody.scrollTop', 'iframe.clientHei ght'); 82 shouldBe('iframeScrollingElement.scrollHeight - iframeScrollingElement.scrol lTop', 'iframe.clientHeight');
84 83
85 // Wait for layout. 84 // Wait for layout.
86 checkScrollOffset(); 85 checkScrollOffset();
87 } 86 }
88 87
89 if (window.testRunner) 88 if (window.testRunner)
90 testRunner.waitUntilDone(); 89 testRunner.waitUntilDone();
91 90
92 function runTest() 91 function runTest()
93 { 92 {
(...skipping 14 matching lines...) Expand all
108 } else { 107 } else {
109 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 108 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
110 } 109 }
111 } 110 }
112 </script> 111 </script>
113 112
114 113
115 114
116 </body> 115 </body>
117 </html> 116 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698