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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated.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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated.html b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated.html
deleted file mode 100644
index a79d6de57bd7a5c272dae9e597ef38891a35a217..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-propagated.html
+++ /dev/null
@@ -1,144 +0,0 @@
-<!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;
-}
-
-#greenbox {
- width: 100px;
- height: 100px;
- background: green;
- padding: 0px;
- margin: 0px;
-}
-
-#redbox {
- width: 100px;
- height: 100px;
- background: red;
- padding: 0px;
- margin: 0px;
-}
-
-#bluebox {
- width: 100px;
- height: 100px;
- background: blue;
- padding: 0px;
- margin: 0px;
-}
-
-#innerdiv {
- width: 200px;
- height: 200px;
- overflow-y: scroll;
- overflow-x: scroll;
-}
-
-#outerdiv {
- width: 250px;
- height: 250px;
- overflow-y: scroll;
- overflow-x: scroll;
-}
-
-td {
- padding: 0px;
-}
-
-</style>
-</head>
-<body style="margin:0" onload="runTest();">
-
-<div id="outerdiv">
- <table border="0" cellspacing="0px" >
- <tr><td>
- <div id="innerdiv">
- <table border="0" cellspacing="0px" >
- <tr><td><div id="greenbox"></div></td></tr>
- <tr><td><div id="redbox"></div></td></tr>
- <tr><td><div id="greenbox"></div></td></tr>
- <tr><td><div id="redbox"></div></td></tr>
- </table>
- </div>
- </td></tr>
- <tr><td>
- <div id="bluebox"></div>
- </td></tr>
- </table>
-</div>
-
-<p id="description"></p>
-<div id="console"></div>
-<script type="text/javascript">
-
-var movedbox;
-var touchtarget;
-var expectedGesturesTotal = 2;
-var gesturesOccurred = 0;
-var scrollAmountX = ['0', '0'];
-var scrollAmountY = ['0', '10'];
-var wheelEventsOccurred = 0;
-var expectedWheelEventsOccurred = ['0', '0'];
-var scrollEventsOccurred = 0;
-var scrolledElement = 'movedbox'
-var scrollEventsOccurred = 0;
-var expectedScrollEventsOccurred = '1';
-
-function firstGestureScroll()
-{
- debug("first gesture");
- eventSender.gestureScrollBegin(10, 72);
- eventSender.gestureScrollUpdate(0, -150);
- eventSender.gestureScrollEnd(0, 0);
-
- // Wait for layout.
- checkScrollOffset();
-}
-
-function secondGestureScroll()
-{
- debug("second gesture");
- eventSender.gestureScrollBegin(12, 40);
- eventSender.gestureScrollUpdate(0, -50);
- eventSender.gestureScrollUpdate(0, -10);
- eventSender.gestureScrollEnd(0, 0);
-
- // Wait for layout.
- checkScrollOffset();
-}
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-function runTest()
-{
- movedbox = document.getElementById("outerdiv");
- touchtarget = document.getElementById("innerdiv");
- touchtarget.addEventListener("scroll", recordScroll);
- touchtarget.addEventListener("mousewheel", recordWheel);
-
- 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 no ' +
- 'remaining scroll offset.');
- if (checkTestDependencies())
- firstGestureScroll();
- else
- exitIfNecessary();
- } else {
- debug("This test requires DumpRenderTree. Gesture-scroll the page to validate the implementation.");
- }
-}
-</script>
-
-
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698