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

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

Powered by Google App Engine
This is Rietveld 408576698