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

Unified Diff: LayoutTests/plugins/npruntime/object-from-destroyed-plugin-in-subframe.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/npruntime/object-from-destroyed-plugin-in-subframe.html
diff --git a/LayoutTests/plugins/npruntime/object-from-destroyed-plugin-in-subframe.html b/LayoutTests/plugins/npruntime/object-from-destroyed-plugin-in-subframe.html
deleted file mode 100644
index 019b39fe5158f213571186272cb7b675c23fabb9..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/npruntime/object-from-destroyed-plugin-in-subframe.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-<script src="../../resources/js-test.js"></script>
-</head>
-<script>
-var subframe;
-var testObject;
-
-function runTest() {
- subframe = document.getElementById('subframe');
- subframe.contentWindow.document.documentElement.innerHTML = '<embed id="plugin" type="application/x-webkit-test-netscape" test="npruntime-object-from-destroyed-plugin"></embed>';
-
- var plugin = subframe.contentWindow.document.getElementById('plugin');
-
- // Get a reference to the plugin test object.
- testObject = plugin.testObject;
-
- plugin.evaluate('window.top.subframe.parentNode.removeChild(window.top.subframe)')
-
- // testObject is now a dangling object and every operation on it should throw.
- shouldThrow('testObject.gettingProperty');
- shouldThrow('testObject.settingProperty = 10');
- shouldThrow('testObject()');
- shouldThrow('new testObject();')
-}
-
-</script>
-<body onLoad="runTest()">
-<p id="description"></p>
-<iframe id="subframe"></iframe>
-<div id="console"></div>
-
-<script>
-description("Test various operation on an NPObject whose plugin (that lives in a subframe) has been destroyed");
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698