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

Unified Diff: LayoutTests/http/tests/navigation/resources/https-in-page-cache-2.php

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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/navigation/resources/https-in-page-cache-2.php
diff --git a/LayoutTests/http/tests/navigation/resources/https-in-page-cache-2.php b/LayoutTests/http/tests/navigation/resources/https-in-page-cache-2.php
deleted file mode 100644
index f9953dbb465073cebaa36fa9cf4862078d336f60..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/navigation/resources/https-in-page-cache-2.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-header("cache-control: no-cache");
-?>
-<script>
-
-function nextTest() {
- if (window.sessionStorage.https_in_page_cache_started)
- delete window.sessionStorage.https_in_page_cache_started;
- location = "https://127.0.0.1:8443/navigation/resources/https-in-page-cache-3.html";
-}
-
-window.onpageshow = function(evt) {
- if (evt.persisted) {
- alert("The page was restored from the page cache. It should NOT have been. Running part 3 of the test.");
- nextTest();
- }
-}
-
-window.onload = function() {
- if (window.sessionStorage.https_in_page_cache_started) {
- alert("The page was reloaded on back, not from the page cache. Good job. Running part 3 of the test.");
- nextTest();
- return;
- }
-
- alert("This page is https and has the no-cache cache-control directive. It should NOT go in to the page cache.");
- window.sessionStorage.https_in_page_cache_started = true;
- setTimeout('window.location = "go-back.html"', 0);
-
-}
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698