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

Unified Diff: LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html

Issue 134443003: Implement CSSOM Smooth Scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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
Index: LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
diff --git a/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html b/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc15fedfc672aa322216a6b31d4293c68b13cd5b
--- /dev/null
+++ b/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ #content {
+ width: 7500px;
+ height: 7500px;
+ background-color: blue;
+ }
+ </style>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="resources/scroll-interruption-test.js"></script>
+ <script type="text/javascript">
+ function doTest()
+ {
+ const testCase = {y1: 40, y2: 4000, y3: 15};
+ const innerPoint = {x: 100, y: 100};
+ runScrollInterruptionTests(document.documentElement, testCase, innerPoint);
+ }
+
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+
+<body>
+ <p>Test that interrupting a smooth scroll on the main frame works with both scroll behaviors and with input</p>
+ <div id="content"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698