OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 /* Body is large enough to scroll but not enough to restore the scroll | 3 /* Body is large enough to scroll but not enough to restore the scroll |
4 position without clamping. */ | 4 position without clamping. */ |
5 body { | 5 body { |
6 height: 2000px; | 6 height: 2000px; |
7 width: 2000px; | 7 width: 2000px; |
8 } | 8 } |
9 </style> | 9 </style> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 shouldBe('document.scrollingElement.scrollLeft', '5000'); | 29 shouldBe('document.scrollingElement.scrollLeft', '5000'); |
30 shouldBe('document.scrollingElement.scrollTop', '5001'); | 30 shouldBe('document.scrollingElement.scrollTop', '5001'); |
31 | 31 |
32 window.name = ""; | 32 window.name = ""; |
33 setTimeout(function(){ window.scrollTo(0, 0); }, 0); | 33 setTimeout(function(){ window.scrollTo(0, 0); }, 0); |
34 finishJSTest(); | 34 finishJSTest(); |
35 } else { | 35 } else { |
36 window.scrollTo(5000, 5001); | 36 window.scrollTo(5000, 5001); |
37 shouldBe('document.scrollingElement.scrollLeft', '5000'); | 37 shouldBe('document.scrollingElement.scrollLeft', '5000'); |
38 shouldBe('document.scrollingElement.scrollTop', '5001'); | 38 shouldBe('document.scrollingElement.scrollTop', '5001'); |
39 setTimeout(function(){ | 39 setTimeout(function(){ |
40 window.name = "verification"; | 40 window.name = "verification"; |
41 window.location = "data:text/html,<script>history.back();</scr" + "i
pt>"; | 41 window.location = "../../resources/back.html"; |
42 }, 0); | 42 }, 0); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 function forceLayout () { | 46 function forceLayout () { |
47 document.body.scrollTop; | 47 document.body.scrollTop; |
48 } | 48 } |
49 </script> | 49 </script> |
50 | 50 |
51 <style> | 51 <style> |
52 body { | 52 body { |
53 height: 9999px; | 53 height: 9999px; |
54 width: 9999px; | 54 width: 9999px; |
55 } | 55 } |
56 </style> | 56 </style> |
OLD | NEW |