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

Side by Side Diff: LayoutTests/fast/scroll-behavior/main-frame-scrollBy.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 #content { 5 #content {
6 width: 7500px; 6 width: 7500px;
7 height: 7500px; 7 height: 7500px;
8 background-color: blue; 8 background-color: blue;
9 } 9 }
10 </style> 10 </style>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 {js: "", css: "smooth", waitForEnd: false, x: -4000, y: -4100}, 59 {js: "", css: "smooth", waitForEnd: false, x: -4000, y: -4100},
60 ]; 60 ];
61 61
62 function doTest() 62 function doTest()
63 { 63 {
64 var testCases = []; 64 var testCases = [];
65 for (var i = 0; i < testScrolls.length; i++) { 65 for (var i = 0; i < testScrolls.length; i++) {
66 testCases.push(new ScrollBehaviorTestCase(testScrolls[i])); 66 testCases.push(new ScrollBehaviorTestCase(testScrolls[i]));
67 } 67 }
68 68
69 var scrollBehaviorTest = new ScrollBehaviorTest(document.body, 69 var scrollBehaviorTest = new ScrollBehaviorTest(document.scrollingElement,
70 document, 70 document,
71 testCases, 71 testCases,
72 getEndPosition, 72 getEndPosition,
73 jsScroll); 73 jsScroll);
74 scrollBehaviorTest.run(); 74 scrollBehaviorTest.run();
75 } 75 }
76 76
77 window.addEventListener('load', doTest, false); 77 window.addEventListener('load', doTest, false);
78 </script> 78 </script>
79 </head> 79 </head>
80 80
81 <body> 81 <body>
82 <p>Test that calling scrollBy on the main frame works with both scroll behavio rs</p> 82 <p>Test that calling scrollBy on the main frame works with both scroll behavio rs</p>
83 <div id="content"></div> 83 <div id="content"></div>
84 </body> 84 </body>
85 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698