OLD | NEW |
1 <!-- | |
2 We intentionally want the page to load slowly (every time, hence no caching), so | |
3 that when back-with-fragment-change-target.html calls history.back(), the load | |
4 is provisional for a while (long enough for the window.location = '#foo' script | |
5 to run and stop that load). | |
6 --> | |
7 <?php | 1 <?php |
8 | 2 // We intentionally want the page to load slowly (every time, hence no caching),
|
| 3 // so that when back-with-fragment-change-target.html calls history.back(), the |
| 4 // load is provisional for a while (long enough for the window.location = '#foo' |
| 5 // script to run and stop that load). |
9 sleep(2); | 6 sleep(2); |
10 | 7 |
11 header("Cache-control: no-cache, no-store"); | 8 header("Cache-control: no-cache, no-store"); |
12 header("Pragma: no-cache"); | 9 header("Pragma: no-cache"); |
13 ?> | 10 ?> |
14 | 11 |
15 <script> | 12 <script> |
16 if (window.layoutTestController) { | 13 if (window.layoutTestController) { |
17 layoutTestController.dumpBackForwardList(); | 14 layoutTestController.dumpBackForwardList(); |
18 layoutTestController.dumpAsText(); | 15 layoutTestController.dumpAsText(); |
(...skipping 17 matching lines...) Expand all Loading... |
36 } | 33 } |
37 | 34 |
38 // Make sure there's no page cache. | 35 // Make sure there's no page cache. |
39 onunload = function() { }; | 36 onunload = function() { }; |
40 </script> | 37 </script> |
41 <p> | 38 <p> |
42 Tests that a history navigation that is aborted by a fragment change doesn't | 39 Tests that a history navigation that is aborted by a fragment change doesn't |
43 update the provisional history item. This test relies on | 40 update the provisional history item. This test relies on |
44 <code>layoutTestController.dumpBackForwardList</code> to verify correctness | 41 <code>layoutTestController.dumpBackForwardList</code> to verify correctness |
45 and thus can only be run via DumpRenderTree.</p> | 42 and thus can only be run via DumpRenderTree.</p> |
OLD | NEW |