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

Unified Diff: LayoutTests/plugins/netscape-dom-access-and-reload.html

Issue 1319473007: Delete a bunch of NPAPI layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 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-dom-access-and-reload.html
diff --git a/LayoutTests/plugins/netscape-dom-access-and-reload.html b/LayoutTests/plugins/netscape-dom-access-and-reload.html
deleted file mode 100644
index b5b77a9717eaee655cf240a5b4de23fb78ad4d31..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/netscape-dom-access-and-reload.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script>
-function runTest()
-{
- // Make the plugin retrieve a DOM element to itself. This exercises
- // https://bugs.webkit.org/show_bug.cgi?id=80428
- document.getElementById("testPlugin").testDOMAccess();
-
- var callReload = true;
- if (window.sessionStorage) {
- if (window.sessionStorage.netscapeDomAccessAndReloadHasReloaded)
- callReload = false;
- else
- window.sessionStorage.netscapeDomAccessAndReloadHasReloaded = 1;
- }
-
- if (window.testRunner)
- testRunner.dumpAsText();
-
- if (callReload) {
- if (window.testRunner)
- testRunner.waitUntilDone();
- location.reload();
- } else {
- window.GCController.collect();
- // Note we could also collect the number of live nodes, but that seems
- // more likely to give spurious failures. When an HTMLPluginElement is
- // improperly retained, its owning Document also survives, so we'll
- // detect an excess Document.
- if (internals && internals.numberOfLiveDocuments) {
- var numberOfLiveDocuments = internals.numberOfLiveDocuments();
- if (numberOfLiveDocuments == 1) {
- document.getElementById("result").innerHTML = "SUCCESS";
- }
- } else {
- document.getElementById("result").innerHTML = "FAILED; This test is only valid in DumpRenderTree, and only when the Inspector is enabled.";
- }
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.notifyDone();
- }
- }
-}
-</script>
-</head>
-<body onload="runTest();">
-<p>This page tests reloading a Netscape plugin that accesses its own DOM element. See https://bugs.webkit.org/show_bug.cgi?id=80428, "HTMLPluginElement is not destroyed on reload or navigation if getNPObject is called".
-
-If it succeeds, you should see SUCCESS below.
-<embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed>
-<div id="result">FAILURE</div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/plugins/netscape-dom-access.html ('k') | LayoutTests/plugins/netscape-dom-access-and-reload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698