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

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

Powered by Google App Engine
This is Rietveld 408576698