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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/loader/scroll-position-restoration-without-premature-clamping.html

Issue 2741513002: [Merge M-57] Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698