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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/forward-to-fragment-fires-onload-2.html

Issue 6541090: Merge 79107 - 2011-02-19 Charlie Reis <creis@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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 Page 2. 1 Page 2.
2 <script> 2 <script>
3 onload = function() 3 onload = function()
4 { 4 {
5 if (window.localStorage.stage == 'one') { 5 if (window.localStorage.stage == 'one') {
6 console.log('1. Got to page 2. Going to #foo.'); 6 console.log('1. Got to page 2. Going to #foo.');
7 window.localStorage.stage = 'two'; 7 window.localStorage.stage = 'two';
8 // Navigate in a timeout to make sure we create a history entry. 8 // Navigate in a timeout to make sure we create a history entry.
9 setTimeout(function() { 9 setTimeout(function() {
10 window.location.href = '#foo'; 10 window.location.href = '#foo';
(...skipping 19 matching lines...) Expand all
30 if (window.localStorage.stage == 'four') { 30 if (window.localStorage.stage == 'four') {
31 console.log('4. Got back to page 2. Immediately going forward.'); 31 console.log('4. Got back to page 2. Immediately going forward.');
32 window.localStorage.stage = 'five'; 32 window.localStorage.stage = 'five';
33 history.forward(); 33 history.forward();
34 } 34 }
35 }); 35 });
36 36
37 </script> 37 </script>
38 <!-- Slow image to let us to go forward while the page is still loading. --> 38 <!-- Slow image to let us to go forward while the page is still loading. -->
39 <img src="slow-resource.pl?delay=100"></iframe> 39 <img src="slow-resource.pl?delay=100"></iframe>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/navigation/forward-to-fragment-fires-onload-expected.txt ('k') | Source/WebCore/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698