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

Side by Side Diff: LayoutTests/http/tests/history/back-with-fragment-change.php

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well 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
(Empty)
1 <?php
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).
6 sleep(2);
7
8 header("Cache-control: no-cache, no-store");
9 header("Pragma: no-cache");
10 ?>
11
12 <script>
13 if (window.testRunner) {
14 testRunner.dumpBackForwardList();
15 testRunner.dumpAsText();
16 testRunner.waitUntilDone();
17 }
18
19 onload = function() {
20 if (sessionStorage.didNavigate) {
21 console.log('Should not have ended up back at the test start page');
22 delete sessionStorage.didNavigate;
23 if (window.testRunner)
24 testRunner.notifyDone();
25 return;
26 }
27
28 // Change the location in a timeout to make sure it generates a history entr y
29 setTimeout(function() {
30 window.location = 'resources/back-with-fragment-change-target.html'
31 sessionStorage.didNavigate = true;
32 }, 0);
33 }
34
35 // Make sure there's no page cache.
36 onunload = function() { };
37 </script>
38 <p>
39 Tests that a history navigation that is aborted by a fragment change doesn't
40 update the provisional history item. This test relies on
41 <code>testRunner.dumpBackForwardList</code> to verify correctness
42 and thus can only be run via DumpRenderTree.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698