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

Unified Diff: LayoutTests/rubberbanding/momentum-reset.html

Issue 977663002: Mac: Delete now-dead elastic overscroll code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/rubberbanding/event-overhang-w-expected.txt ('k') | LayoutTests/rubberbanding/overhang-e.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/rubberbanding/momentum-reset.html
diff --git a/LayoutTests/rubberbanding/momentum-reset.html b/LayoutTests/rubberbanding/momentum-reset.html
deleted file mode 100644
index 7a1a748024612238f18b1ff95c1e7b3a91c0685f..0000000000000000000000000000000000000000
--- a/LayoutTests/rubberbanding/momentum-reset.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head><title>Tests that a momentum scroll (i.e. a fling) eventually resets back to no-overhang state</title></head>
-<body>
-<div id="box" style="height:800px; background: red; border:2px solid black; width:100%"></div>
-<div id="info">This test requires DRT.</div>
-<script>
- if (window.internals) {
- document.getElementById('info').style.visibility = 'hidden';
- internals.settings.setMockScrollbarsEnabled(false);
-
- eventSender.mouseMoveTo(10, 10);
- eventSender.mouseDragBegin();
- eventSender.mouseDragEnd();
-
- // Simulate a momentum scroll following the end of a normal scroll.
- eventSender.mouseMomentumBegin2(0, 0, false, true);
- eventSender.mouseMomentumScrollBy(0, 250, false, true);
- eventSender.mouseMomentumEnd();
-
- // The momentum scroll above should have resulted in overflow above the page.
- // Ensure that it has (via scrollTop) and register an onscroll listener to
- // ensure that the timer restores the position.
- if (document.documentElement.scrollTop == 0) {
- // FAIL: Above didn't result in overscroll.
- document.getElementById('box').style.background = 'blue';
- } else {
-
- document.getElementById('box').style.background = 'green';
- // Wait for the timer to restore the position.
- testRunner.waitUntilDone();
- var startedScrolling = false;
- window.onscroll = function() {
- if (document.documentElement.scrollTop == 0) {
- testRunner.notifyDone();
- }
- };
- }
- }
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/rubberbanding/event-overhang-w-expected.txt ('k') | LayoutTests/rubberbanding/overhang-e.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698