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

Side by Side Diff: LayoutTests/fast/scroll-behavior/main-frame-scroll.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 {js: "", css: "smooth", waitForEnd: false, x: 10, y: 5}, 60 {js: "", css: "smooth", waitForEnd: false, x: 10, y: 5},
61 ]; 61 ];
62 62
63 function doTest() 63 function doTest()
64 { 64 {
65 var testCases = []; 65 var testCases = [];
66 for (var i = 0; i < testScrolls.length; i++) { 66 for (var i = 0; i < testScrolls.length; i++) {
67 testCases.push(new ScrollBehaviorTestCase(testScrolls[i])); 67 testCases.push(new ScrollBehaviorTestCase(testScrolls[i]));
68 } 68 }
69 69
70 var scrollBehaviorTest = new ScrollBehaviorTest(document.body, 70 var scrollBehaviorTest = new ScrollBehaviorTest(document.scrollingElement,
71 document, 71 document,
72 testCases, 72 testCases,
73 getEndPosition, 73 getEndPosition,
74 jsScroll); 74 jsScroll);
75 scrollBehaviorTest.run(); 75 scrollBehaviorTest.run();
76 } 76 }
77 77
78 window.addEventListener('load', doTest, false); 78 window.addEventListener('load', doTest, false);
79 </script> 79 </script>
80 </head> 80 </head>
81 81
82 <body> 82 <body>
83 <p>Test that calling scroll on the main frame works with both scroll behaviors </p> 83 <p>Test that calling scroll on the main frame works with both scroll behaviors </p>
84 <div id="content"></div> 84 <div id="content"></div>
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698