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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 body {
5 height: 1000px;
6 }
7 #fixed {
8 position:fixed;
9 right: 20px;
10 width: 100px;
11 height: 40px;
12 background-color: #ace;
13 }
14 #text {
15 font: bold 18pt monospace;
16 }
17 </style>
18 <div id="fixed"></div>
19 <div id="text">TEXT</div>
20 <div id="console"></div>
21 <script>
22
23 var jsTestIsAsync = true;
24
25 description(
26 "This test verifies that text selection does not prevent smooth " +
27 "scrolls running on the main thread.");
28
29 eventSender.dragMode = false;
30
31 // Start a text selection.
32 eventSender.mouseMoveTo(20, 20);
33 eventSender.mouseDown();
34 eventSender.mouseMoveTo(40, 20);
35
36 eventSender.mouseScrollBy(0, -1);
37 shouldBecomeEqual("scrollY", "40", finishJSTest);
38
39 </script>
OLDNEW
« 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