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

Side by Side Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/main-thread-scrolling-reason-added.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 width: 2000px; 5 width: 2000px;
6 height: 2000px; 6 height: 2000px;
7 } 7 }
8 </style> 8 </style>
9 9
10 <script> 10 <script>
11 var jsTestIsAsync = true; 11 var jsTestIsAsync = true;
12 var defaultTimeoutForShouldBecome = 5000;
12 13
13 description("This test verifies that smooth scrolls initiated on the main " + 14 description("This test verifies that smooth scrolls initiated on the main " +
14 "thread add the appropriate main thread scrolling reason."); 15 "thread add the appropriate main thread scrolling reason.");
15 16
16 // From ScrollingCoordinator::mainThreadScrollingReasonsAsText. 17 // From ScrollingCoordinator::mainThreadScrollingReasonsAsText.
17 var ANIMATING_TEXT = "Handling scroll from main thread"; 18 var ANIMATING_TEXT = "Handling scroll from main thread";
18 var RUNNING_ON_COMPOSITOR = "RunningOnCompositor"; 19 var RUNNING_ON_COMPOSITOR = "RunningOnCompositor";
19 20
20 function finishTest() { 21 function finishTest() {
21 requestAnimationFrame(function() { 22 requestAnimationFrame(function() {
(...skipping 28 matching lines...) Expand all
50 51
51 document.scrollingElement.scrollTop = 0; 52 document.scrollingElement.scrollTop = 0;
52 53
53 // Scroll 1 ticks down. 54 // Scroll 1 ticks down.
54 eventSender.mouseMoveTo(20, 20); 55 eventSender.mouseMoveTo(20, 20);
55 eventSender.mouseScrollBy(0, -1); 56 eventSender.mouseScrollBy(0, -1);
56 runTest(); 57 runTest();
57 }; 58 };
58 59
59 </script> 60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698