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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/mousewheel-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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: 2000px; 5 height: 2000px;
6 width: 2000px; 6 width: 2000px;
7 } 7 }
8 </style> 8 </style>
9 9
10 <script> 10 <script>
11 window.jsTestIsAsync = true; 11 window.jsTestIsAsync = true;
12 var defaultTimeoutForShouldBecome = 5000;
12 13
13 description("This test ensures that consecutive mouse wheel ticks scroll\ 14 description("This test ensures that consecutive mouse wheel ticks scroll\
14 to the right offset. The main purpose of this test is to ensure that\ 15 to the right offset. The main purpose of this test is to ensure that\
15 smooth scrolling on the compositor works as intended (tested via\ 16 smooth scrolling on the compositor works as intended (tested via\
16 virtual suite virtual/threaded/)."); 17 virtual suite virtual/threaded/).");
17 18
18 function testDiagonalScroll() { 19 function testDiagonalScroll() {
19 // Reset 20 // Reset
20 document.scrollingElement.scrollTop = 0; 21 document.scrollingElement.scrollTop = 0;
21 document.scrollingElement.scrollLeft = 0; 22 document.scrollingElement.scrollLeft = 0;
(...skipping 28 matching lines...) Expand all
50 eventSender.mouseScrollBy(0, 1); 51 eventSender.mouseScrollBy(0, 1);
51 eventSender.mouseScrollBy(1, 0); 52 eventSender.mouseScrollBy(1, 0);
52 53
53 // 40px per tick. 54 // 40px per tick.
54 shouldBecomeEqual("document.scrollingElement.scrollTop == 80 && " + 55 shouldBecomeEqual("document.scrollingElement.scrollTop == 80 && " +
55 "document.scrollingElement.scrollLeft == 80", "true", testDiagonalScro ll); 56 "document.scrollingElement.scrollLeft == 80", "true", testDiagonalScro ll);
56 } 57 }
57 </script> 58 </script>
58 59
59 <body onload="runTest()"></body> 60 <body onload="runTest()"></body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/scroll-during-selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698