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

Unified Diff: LayoutTests/plugins/netscape-plugin-page-cache-works.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/plugins/netscape-plugin-page-cache-works.html
diff --git a/LayoutTests/plugins/netscape-plugin-page-cache-works.html b/LayoutTests/plugins/netscape-plugin-page-cache-works.html
deleted file mode 100644
index 11b1fd7830c2a2133a1007cd34af96889539dbdf..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/netscape-plugin-page-cache-works.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<html>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
- testRunner.overridePreference("WebKitPageCacheSupportsPluginsPreferenceKey", 1);
-}
-
-var savedTestObject = null;
-var currentTestStage = null;
-var hasHidden = false;
-
-function runTest()
-{
- var plugin = document.getElementById("testPlugin");
-
- if (!savedTestObject)
- savedTestObject = plugin.testObject;
-
- try {
- log("Accessing testObject.property");
- savedTestObject.property;
- log("Accessed testObject.property without exception");
- } catch (e) {
- log("While accessing testObject.property: " + e);
- }
-
- try {
- log("Assigning to testObject.property");
- savedTestObject.property = 'hello';
- log("Assigned to testObject.property without exception");
- } catch (e) {
- log("While assigning to testObject.property: " + e);
- }
-
- if (!hasHidden)
- setTimeout("window.location.href = 'resources/go-back.html'", 0);
- else {
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
-}
-
-function loaded() {
- currentTestStage = "Initial load";
- log("Page loaded");
-}
-
-function hidden() {
- log("Page hidden");
- hasHidden = true;
-}
-
-function shown() {
- if (hasHidden)
- currentTestStage = "Restored from page cache"
- log("Page shown");
-}
-
-function pluginCreated()
-{
- log("Plugin created");
- setTimeout("runTest()", 0);
-}
-
-function log(message)
-{
- document.getElementById("logging").innerHTML += currentTestStage + ": " + message + "<br>";
-}
-</script>
-
-<body onload="loaded()" onpagehide="hidden();" onpageshow="shown();">
-This tests that pages with plugins behave properly with the page cache. This includes:<br>
--The plugin being destroyed upon navigation away from the page.<br>
--The plugin being recreated upon restoring the page from the page cache.<br>
--Plugin script objects accessed the first time the plugin was created are appropriately invalidated after the page has been restored from the page cache.<br><br>
-Unfortunately there is no reliable way to get affirmative confirmation that the plugin was destroyed upon navigation away from the page. For now we'll assume recreation means it had successfully been destroyed.<br>
-<embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200" onNew="pluginCreated()"></embed><br>
-<div id="logging"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698