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

Unified Diff: LayoutTests/plugins/npobject-js-wrapper-destroyed-after-plugin-unload.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/npobject-js-wrapper-destroyed-after-plugin-unload.html
diff --git a/LayoutTests/plugins/npobject-js-wrapper-destroyed-after-plugin-unload.html b/LayoutTests/plugins/npobject-js-wrapper-destroyed-after-plugin-unload.html
deleted file mode 100644
index ccf4b0d04a90f8e74e5a1e499aa0730502f98235..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/npobject-js-wrapper-destroyed-after-plugin-unload.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script>
- function startTest() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- // Access all objects/properties that we're going to use later in the test so that JS
- // allocations only happen when we expect.
- var body = document.body;
- body.removeChild;
- var plugin = body.getElementsByTagName('embed')[0];
- var testObject = plugin.testObject;
- setTimeout;
-
- testObject = null;
-
- // Allocate a bunch of JS memory. This should cause testObject to be finalized, but it's
- // destructor shouldn't run until the GCController.collect call we make later.
- var array = new Array(10000);
- for (var i = 0; i < 10000; ++i)
- array[i] = new Object();
-
- // Remove the plugin and wait for a little bit to ensure it has been unloaded (WebKit1
- // on Windows unloads plugins after a delay).
- body.removeChild(plugin);
- setTimeout(finishTest, 250);
- }
-
- function finishTest() {
- // Force a GC. If we don't crash here, we've passed the test.
- if (window.GCController)
- GCController.collect();
-
- document.body.appendChild(document.createTextNode('PASSED'));
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
- addEventListener('load', startTest, false);
- </script>
-</head>
-<body>
- <p>This test will only work in DumpRenderTree/WebKitTestRunner.</p>
- <embed type="application/x-webkit-test-netscape">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698