Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / navigation / go-back-to-error-page.html
1 <script>
2 if (window.testRunner) {
3     testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
4     testRunner.dumpAsText();
5     testRunner.queueLoadHTMLString("<script>document.write('<div id=result>FAIL: The alternate HTML string was cached, but should not have been cached for an error page</div>');<\/script>", "resources", "http://127.0.0.1:8000/navigation/resources/page-treated-as-unreachable.html");
6     testRunner.queueLoad("resources/page-to-go-back-from.html");
7     testRunner.queueBackNavigation(1);
8 } else
9     document.write('This test must be run by DumpRenderTree!')
10 </script>
11
12 <p>This tests that going back to an error page (an unreachable URL for which there is substitute
13 data) does not cause an assertion failure.</p>
14