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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-past-extent-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: Fix silly mistake in mac expectations. Created 5 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 <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, unless ' +
55 'the outer div starts at its scroll extent');
55 if (checkTestDependencies()) { 56 if (checkTestDependencies()) {
56 eventSender.gestureScrollBegin(10, 10); 57 eventSender.gestureScrollBegin(10, 10);
57 eventSender.gestureScrollUpdate(-15, -20); 58 eventSender.gestureScrollUpdate(-15, -20);
58 eventSender.gestureScrollEnd(0, 0); 59 eventSender.gestureScrollEnd(0, 0);
59 shouldBe("horizontal.scrollLeft", "15"); 60 shouldBe("horizontal.scrollLeft", "15");
61 shouldBe("vertical.scrollTop", "0");
62
63 // Scroll to extents.
64 eventSender.gestureScrollBegin(10, 10);
65 eventSender.gestureScrollUpdate(-1000, -1000);
66 eventSender.gestureScrollEnd(0, 0);
67 shouldBe("horizontal.scrollLeft", "600");
68 shouldBe("vertical.scrollTop", "0");
69
70 eventSender.gestureScrollBegin(10, 10);
71 eventSender.gestureScrollUpdate(-15, -20);
72 eventSender.gestureScrollEnd(0, 0);
73 shouldBe("horizontal.scrollLeft", "600");
60 shouldBe("vertical.scrollTop", "20"); 74 shouldBe("vertical.scrollTop", "20");
75
61 if (window.testRunner) 76 if (window.testRunner)
62 testRunner.notifyDone(); 77 testRunner.notifyDone();
63 } else { 78 } else {
64 exitIfNecessary(); 79 exitIfNecessary();
65 } 80 }
66 } else { 81 } else {
67 debug("This test requires DumpRenderTree. Gesture-scroll the page diago nally to validate the implementation."); 82 debug("This test requires DumpRenderTree. Gesture-scroll the page diago nally to validate the implementation.");
68 } 83 }
69 } 84 }
70 </script> 85 </script>
71 86
72 </body> 87 </body>
73 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698