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

Side by Side Diff: LayoutTests/fast/history/back-forward-reset-after-error-handling.html

Issue 14495004: Remove left-over PageCache stuff (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <script>
3 // Pre-conditions
4 // - Error page handling is supported on DRT.
5
6 // Navigation steps:
7 // 1- loads this page.
8 // 2- loads a non-existent page (an error page is loaded).
9 // 4- executes a back, forward and back navigations.
10
11 // Expected results:
12 // - forward-list should comprise the non-existent loaded page(2).
13
14 var isOkToContinue = " "+
15 "{ "+
16 " var console = document.getElementById('console'); "+
17 " if (console != null) "+
18 " console.innerHTML = 'SUCCESS'; "+
19 " else "+
20 " console.innerHTML = 'FAIL'; "+
21 "}";
22
23 if (window.testRunner) {
24 testRunner.dumpAsText();
25 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
26 testRunner.handleErrorPages();
27 testRunner.dumpBackForwardList();
28 }
29
30 function onPageShow(evt)
31 {
32 if (!evt.persisted) {
33 // this is the first time the page has been loaded, then setup the
34 // to-be-tested scenario.
35 testRunner.queueLoad("./non-existent.html");
36 testRunner.queueBackNavigation(1);
37 testRunner.queueForwardNavigation(1);
38 testRunner.queueBackNavigation(1);
39 testRunner.queueNonLoadingScript("eval(\"" + isOkToContinue + "\")") ;
40 }
41 }
42
43 window.onpageshow = onPageShow;
44 </script>
45 <body>
46 <h1 id='console'/>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698