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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.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 7
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 width: 0px; 9 width: 0px;
10 height: 0px; 10 height: 0px;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 iframeBody = iframe.contentDocument.body;
71 iframeDocumentElement = touchtarget.contentDocument.documentElement; 71 iframeDocumentElement = touchtarget.contentDocument.documentElement;
72 72
73 var amountToScroll = iframeBody.scrollHeight - iframe.clientHeight; 73 var amountToScroll = iframeBody.scrollHeight - iframe.clientHeight;
74 74
75 iframeDocumentElement.scrollTop = amountToScroll; 75 iframeBody.scrollTop = amountToScroll;
76 76
77 // Sanity - make sure the iframe is actually fully scrolled 77 // Sanity - make sure the iframe is actually fully scrolled
78 shouldBe('iframeBody.scrollHeight - iframeDocumentElement.scrollTop', 'ifram e.clientHeight'); 78 shouldBe('iframeBody.scrollHeight - iframeBody.scrollTop', 'iframe.clientHei ght');
79 79
80 eventSender.gestureScrollBegin(10, 72); 80 eventSender.gestureScrollBegin(10, 72);
81 // Prevent scroll to propagate by passing true for third parameter 81 // Prevent scroll to propagate by passing true for third parameter
82 eventSender.gestureScrollUpdate(0, -20, true); 82 eventSender.gestureScrollUpdate(0, -20, true);
83 eventSender.gestureScrollUpdate(0, -18, true); 83 eventSender.gestureScrollUpdate(0, -18, true);
84 eventSender.gestureScrollUpdate(0, -15, true); 84 eventSender.gestureScrollUpdate(0, -15, true);
85 eventSender.gestureScrollUpdate(0, -10, true); 85 eventSender.gestureScrollUpdate(0, -10, true);
86 eventSender.gestureScrollEnd(0, 0); 86 eventSender.gestureScrollEnd(0, 0);
87 87
88 amountToScroll = movedbox.scrollHeight - movedbox.clientHeight; 88 amountToScroll = movedbox.scrollHeight - movedbox.clientHeight;
(...skipping 25 matching lines...) Expand all
114 } else { 114 } else {
115 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 115 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
116 } 116 }
117 } 117 }
118 </script> 118 </script>
119 119
120 120
121 121
122 </body> 122 </body>
123 </html> 123 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698