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

Unified Diff: LayoutTests/http/tests/navigation/go-back-to-error-page.html

Issue 679863002: Revert "Prepare blink to unify definitions of load completion" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/navigation/go-back-to-error-page.html
diff --git a/LayoutTests/http/tests/navigation/go-back-to-error-page.html b/LayoutTests/http/tests/navigation/go-back-to-error-page.html
new file mode 100644
index 0000000000000000000000000000000000000000..b0041a832b572a68e964f4c0051cc9105ea4ba66
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/go-back-to-error-page.html
@@ -0,0 +1,13 @@
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ 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>", "http://127.0.0.1:8000/navigation/resources/", "http://127.0.0.1:8000/navigation/resources/page-treated-as-unreachable.html");
+ testRunner.queueLoad("resources/page-to-go-back-from.html");
+ testRunner.queueBackNavigation(1);
+} else
+ document.write('This test must be run by DumpRenderTree!')
+</script>
+
+<p>This tests that going back to an error page (an unreachable URL for which there is substitute
+data) does not cause an assertion failure.</p>
+

Powered by Google App Engine
This is Rietveld 408576698