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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-past-extent-not-propagated-diagonally.html

Issue 1320543006: Remove touch scroll chaining from main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gclient
Patch Set: Created 5 years, 3 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 <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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 <p id="description"></p> 42 <p id="description"></p>
43 <div id="console"></div> 43 <div id="console"></div>
44 <script type="text/javascript"> 44 <script type="text/javascript">
45 45
46 if (window.testRunner) 46 if (window.testRunner)
47 testRunner.waitUntilDone(); 47 testRunner.waitUntilDone();
48 48
49 function runTest() 49 function runTest()
50 { 50 {
51 if (window.eventSender) { 51 if (window.eventSender) {
52 description('This tests that a gesture scroll is propagated from an ' + 52 description('This tests that a gesture scroll isn\'t propagated from an ' +
53 'inner div to an outer div when the inner div has ' + 53 'inner div to an outer div when the inner div has ' +
54 'remaining scroll offset on one axis, but not on the other.'); 54 'remaining scroll offset on one axis, but not on the other.');
55 if (checkTestDependencies()) { 55 if (checkTestDependencies()) {
56 eventSender.gestureScrollBegin(10, 10); 56 eventSender.gestureScrollBegin(10, 10);
57 eventSender.gestureScrollUpdate(-15, -20); 57 eventSender.gestureScrollUpdate(-15, -20);
58 eventSender.gestureScrollEnd(0, 0); 58 eventSender.gestureScrollEnd(0, 0);
59 shouldBe("horizontal.scrollLeft", "15"); 59 shouldBe("horizontal.scrollLeft", "15");
60 shouldBe("vertical.scrollTop", "20"); 60 shouldBe("vertical.scrollTop", "0");
61 if (window.testRunner) 61 if (window.testRunner)
62 testRunner.notifyDone(); 62 testRunner.notifyDone();
63 } else { 63 } else {
64 exitIfNecessary(); 64 exitIfNecessary();
65 } 65 }
66 } else { 66 } else {
67 debug("This test requires DumpRenderTree. Gesture-scroll the page diago nally to validate the implementation."); 67 debug("This test requires DumpRenderTree. Gesture-scroll the page diago nally to validate the implementation.");
68 } 68 }
69 } 69 }
70 </script> 70 </script>
71 71
72 </body> 72 </body>
73 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698