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

Side by Side Diff: LayoutTests/http/tests/history/client-redirect-after-push-state.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js-test-resources/js-test-pre.js"></script> 4 <script src="../../js-test-resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
11 description('Test that history.pushState can be called between scheduling and fi ring of a client redirect and still create just one new history entry. This was regressed in r149960'); 11 description('Test that history.pushState can be called between scheduling and fi ring of a client redirect and still create just one new history entry. This was regressed in r149960');
12 12
13 if (window.testRunner) 13 if (window.testRunner)
14 testRunner.dumpChildFramesAsText(true); 14 testRunner.dumpChildFramesAsText(true);
15 15
16 function run() 16 function run()
17 { 17 {
18 var iframe = document.createElement("iframe"); 18 var iframe = document.createElement("iframe");
19 document.body.appendChild(iframe); 19 document.body.appendChild(iframe);
20 iframe.src = "resources/redirect-target.html#2"; 20 iframe.src = "resources/redirect-target.html#2";
21 window.history.pushState("", "", location.href); 21 window.history.pushState("", "", location.href);
22 }; 22 };
23 23
24 window.onload = function() { 24 window.onload = function() {
25 setTimeout(run, 0); 25 setTimeout(run, 0);
26 } 26 }
27 27
28 var jsTestIsAsync = true; 28 var jsTestIsAsync = true;
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698