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

Unified Diff: LayoutTests/fast/loader/input-element-page-cache-crash.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/loader/input-element-page-cache-crash.html
diff --git a/LayoutTests/fast/loader/input-element-page-cache-crash.html b/LayoutTests/fast/loader/input-element-page-cache-crash.html
deleted file mode 100644
index e36db20a433fdb65ee116d66f27befdb9273f47b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/loader/input-element-page-cache-crash.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<html>
-<head>
-<script>
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
-}
-
-function runTest()
-{
- var input = document.getElementById("testinput");
- input.setAttribute("autocomplete", "on");
- input.parentNode.removeChild(input);
-
- // Location changes need to happen outside the onload handler to generate history entries.
- setTimeout(function() {window.location = "data:text/html,<script>history.back();</scrip" + "t>";}, 0);
-}
-
-function pageHidden()
-{
- if (!sessionStorage.finishTest) {
- console.log('navigating away');
- sessionStorage.finishTest = true;
- } else {
- // Clean up after ourselves
- delete sessionStorage.finishTest;
- }
-}
-
-function pageShown()
-{
- if (sessionStorage.finishTest) {
- console.log('navigated back');
- if (window.testRunner)
- testRunner.notifyDone();
- } else {
- runTest();
- }
-}
-
-</script>
-</head>
-
-<body onpagehide="pageHidden();" onpageshow="pageShown();">
-<pre>This test has an input element that starts out with autocomplete=off.
-It then changes autocomplete to on.
-It then removes the element so it is destroyed.
-It then navigates to a new page, placing the current page in the page cache.
-Finally it returns to the original page.</pre>
-<form>
-<input id="testinput" autocomplete="off">
-</form>
-</body>

Powered by Google App Engine
This is Rietveld 408576698