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

Unified Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html

Issue 1775213002: Fix premature termination of scroll animations while selecting text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html
new file mode 100644
index 0000000000000000000000000000000000000000..03bedacf58fbe0098fd1f03854dea2df419dbccb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+body {
+ height: 1000px;
+}
+#fixed {
+ position:fixed;
+ right: 20px;
+ width: 100px;
+ height: 40px;
+ background-color: #ace;
+}
+#text {
+ font: bold 18pt monospace;
+}
+</style>
+<div id="fixed"></div>
+<div id="text">TEXT</div>
+<div id="console"></div>
+<script>
+
+var jsTestIsAsync = true;
+
+description(
+ "This test verifies that text selection does not prevent smooth " +
+ "scrolls running on the main thread.");
+
+eventSender.dragMode = false;
+
+// Start a text selection.
+eventSender.mouseMoveTo(20, 20);
+eventSender.mouseDown();
+eventSender.mouseMoveTo(40, 20);
+
+eventSender.mouseScrollBy(0, -1);
+shouldBecomeEqual("scrollY", "40", finishJSTest);
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698