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

Unified Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally.html

Issue 988823003: Use scroll customization primitives for touch scrolling (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address rbyers' nit. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally.html
diff --git a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally.html b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally.html
new file mode 100644
index 0000000000000000000000000000000000000000..ce8b3fd678d420a90d6c6c883aa15e99353c5be7
--- /dev/null
+++ b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../../resources/js-test.js"></script>
+<script src="resources/gesture-helpers.js"></script>
+<style type="text/css">
+
+::-webkit-scrollbar {
+ width: 0px;
+ height: 0px;
+}
+
+#contents {
+ width:500px;
+ height:150px;
+ border-right:700px solid black;
+ background:red;
+}
+
+#horizontal {
+ width:600px;
+ height:600px;
+ overflow:scroll;
+ background:green;
+}
+
+#vertical {
+ height:300px;
+ overflow:scroll;
+}
+
+</style>
+</head>
+<body style="margin:0" onload="runTest();">
+
+<div id="vertical">
+ <div id="horizontal">
+ <div id="contents"></div>
+ </div>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+<script type="text/javascript">
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function runTest()
+{
+ if (window.eventSender) {
+ description('This tests that a gesture scroll is propagated from an ' +
+ 'inner div to an outer div when the inner div has ' +
+ 'remaining scroll offset on one axis, but not on the other.');
+ if (checkTestDependencies()) {
+ eventSender.gestureScrollBegin(10, 10);
+ eventSender.gestureScrollUpdate(-15, -20);
+ eventSender.gestureScrollEnd(0, 0);
+ shouldBe("horizontal.scrollLeft", "15");
+ shouldBe("vertical.scrollTop", "20");
+ if (window.testRunner)
+ testRunner.notifyDone();
+ } else {
+ exitIfNecessary();
+ }
+ } else {
+ debug("This test requires DumpRenderTree. Gesture-scroll the page diagonally to validate the implementation.");
+ }
+}
+</script>
+
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated-diagonally-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698