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

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

Issue 2503673002: Revert "Raise timeouts on smooth scroll layout tests". (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 body { 4 body {
5 height: 1000px; 5 height: 1000px;
6 } 6 }
7 #fixed { 7 #fixed {
8 position:fixed; 8 position:fixed;
9 right: 20px; 9 right: 20px;
10 width: 100px; 10 width: 100px;
11 height: 40px; 11 height: 40px;
12 background-color: #ace; 12 background-color: #ace;
13 } 13 }
14 #text { 14 #text {
15 font: bold 18pt monospace; 15 font: bold 18pt monospace;
16 } 16 }
17 </style> 17 </style>
18 <div id="fixed"></div> 18 <div id="fixed"></div>
19 <div id="text">TEXT</div> 19 <div id="text">TEXT</div>
20 <div id="console"></div> 20 <div id="console"></div>
21 <script> 21 <script>
22 22
23 var jsTestIsAsync = true; 23 var jsTestIsAsync = true;
24 var defaultTimeoutForShouldBecome = 5000;
25 24
26 description( 25 description(
27 "This test verifies that text selection does not prevent smooth " + 26 "This test verifies that text selection does not prevent smooth " +
28 "scrolls running on the main thread."); 27 "scrolls running on the main thread.");
29 28
30 eventSender.dragMode = false; 29 eventSender.dragMode = false;
31 30
32 // Start a text selection. 31 // Start a text selection.
33 eventSender.mouseMoveTo(20, 20); 32 eventSender.mouseMoveTo(20, 20);
34 eventSender.mouseDown(); 33 eventSender.mouseDown();
35 eventSender.mouseMoveTo(40, 20); 34 eventSender.mouseMoveTo(40, 20);
36 35
37 eventSender.mouseScrollBy(0, -1); 36 eventSender.mouseScrollBy(0, -1);
38 shouldBecomeEqual("scrollY", "40", finishJSTest); 37 shouldBecomeEqual("scrollY", "40", finishJSTest);
39 38
40 </script> 39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698