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

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

Issue 2487443002: Raise timeouts on smooth scroll layout tests. (Closed)
Patch Set: rebase 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;
24 25
25 description( 26 description(
26 "This test verifies that text selection does not prevent smooth " + 27 "This test verifies that text selection does not prevent smooth " +
27 "scrolls running on the main thread."); 28 "scrolls running on the main thread.");
28 29
29 eventSender.dragMode = false; 30 eventSender.dragMode = false;
30 31
31 // Start a text selection. 32 // Start a text selection.
32 eventSender.mouseMoveTo(20, 20); 33 eventSender.mouseMoveTo(20, 20);
33 eventSender.mouseDown(); 34 eventSender.mouseDown();
34 eventSender.mouseMoveTo(40, 20); 35 eventSender.mouseMoveTo(40, 20);
35 36
36 eventSender.mouseScrollBy(0, -1); 37 eventSender.mouseScrollBy(0, -1);
37 shouldBecomeEqual("scrollY", "40", finishJSTest); 38 shouldBecomeEqual("scrollY", "40", finishJSTest);
38 39
39 </script> 40 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698