| 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> |
| 11 <script src="../../resources/js-test.js"></script> | 11 <script src="../../resources/js-test.js"></script> |
| 12 <script> | 12 <script> |
| 13 onload = function() { | 13 onload = function() { |
| 14 description('Test that calling scroll methods on the body element does not
scroll the viewport in standards mode'); | 14 description('Test that calling scroll methods on the body element does not
scroll the viewport in standards mode. Currently expected to fail: crbug.com/1
57855'); |
| 15 |
| 15 | 16 |
| 16 debug('Test that "scroll" on the body element does not scroll'); | 17 debug('Test that "scroll" on the body element does not scroll'); |
| 17 document.body.scroll(100, 100); | 18 document.body.scroll(100, 100); |
| 18 shouldBe("document.body.scrollTop", "0"); | 19 shouldBe("document.body.scrollTop", "0"); |
| 19 shouldBe("document.body.scrollLeft", "0"); | 20 shouldBe("document.body.scrollLeft", "0"); |
| 20 shouldBe("document.documentElement.scrollTop", "0"); | 21 shouldBe("document.documentElement.scrollTop", "0"); |
| 21 shouldBe("document.documentElement.scrollLeft", "0"); | 22 shouldBe("document.documentElement.scrollLeft", "0"); |
| 22 | 23 |
| 23 debug(''); | 24 debug(''); |
| 24 debug('Test that "scrollTo" on the body element does not scroll'); | 25 debug('Test that "scrollTo" on the body element does not scroll'); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 shouldBe("document.documentElement.scrollTop", "300"); | 61 shouldBe("document.documentElement.scrollTop", "300"); |
| 61 shouldBe("document.documentElement.scrollLeft", "750"); | 62 shouldBe("document.documentElement.scrollLeft", "750"); |
| 62 } | 63 } |
| 63 </script> | 64 </script> |
| 64 </head> | 65 </head> |
| 65 | 66 |
| 66 <body> | 67 <body> |
| 67 <div id="content"></div> | 68 <div id="content"></div> |
| 68 </body> | 69 </body> |
| 69 </html> | 70 </html> |
| OLD | NEW |