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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/track-scroll.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: 1800px; 5 height: 1800px;
6 } 6 }
7 </style> 7 </style>
8 <body> 8 <body>
9 <script> 9 <script>
10 window.jsTestIsAsync = true; 10 window.jsTestIsAsync = true;
11 var defaultTimeoutForShouldBecome = 5000;
12 11
13 description("This test scrolls by clicking in the scrollbar track."); 12 description("This test scrolls by clicking in the scrollbar track.");
14 13
15 // Compute ScrollableArea::pageStep. 14 // Compute ScrollableArea::pageStep.
16 var pageStep = innerHeight * 0.875; 15 var pageStep = innerHeight * 0.875;
17 if (navigator.userAgent.indexOf("Mac OS X") >= 0) 16 if (navigator.userAgent.indexOf("Mac OS X") >= 0)
18 pageStep = Math.max(pageStep, innerHeight - 40); 17 pageStep = Math.max(pageStep, innerHeight - 40);
19 18
20 onload = function() { 19 onload = function() {
21 if (!window.eventSender || !window.internals) { 20 if (!window.eventSender || !window.internals) {
(...skipping 17 matching lines...) Expand all
39 shouldBecomeEqual("scrollY", "pageStep", function() { 38 shouldBecomeEqual("scrollY", "pageStep", function() {
40 requestAnimationFrame(function() { 39 requestAnimationFrame(function() {
41 // Make sure we stopped here. 40 // Make sure we stopped here.
42 shouldBe("scrollY", "pageStep"); 41 shouldBe("scrollY", "pageStep");
43 finishJSTest(); 42 finishJSTest();
44 }); 43 });
45 }); 44 });
46 }; 45 };
47 </script> 46 </script>
48 </body> 47 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698