Index: LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
diff --git a/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html b/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aee4acf03fc516664e016ea58b529710c8ab92cb |
--- /dev/null |
+++ b/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <style> |
+ #subframe { |
+ width: 200px; |
+ height: 200px; |
+ } |
+ </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} |
+ var subframe = document.getElementById("subframe"); |
+ runScrollInterruptionTests(subframe.contentDocument.documentElement, testCase, innerPoint); |
+ } |
+ |
+ window.addEventListener('load', doTest, false); |
+ </script> |
+</head> |
+ |
+<body> |
+ <p>Test that interrupting a smooth scroll on a subframe works with both scroll behaviors and with input</p> |
+ <iframe id="subframe" src="resources/large-subframe.html"></iframe> |
+</body> |
+</html> |