| OLD | NEW |
| 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 Loading... |
| 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.documentElement, | 69 var scrollBehaviorTest = new ScrollBehaviorTest(document.body, |
| 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> |
| OLD | NEW |