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

Unified Diff: LayoutTests/plugins/script-object-invoke.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/script-object-invoke.html
diff --git a/LayoutTests/plugins/script-object-invoke.html b/LayoutTests/plugins/script-object-invoke.html
deleted file mode 100644
index f787303dde26c4f9b916586a8bd7680d1d22056c..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/script-object-invoke.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<html>
-<script>
-// A simple script object with a member function that takes
-// an NPObject as an argument
-FactoryFunction = function() {
- var TestObject = function() {
- };
-
- TestObject.prototype.createObject = function(plugin) {
- var new_object = plugin.testCloneObject();
- return new_object;
- };
-
- var s = new TestObject();
- return s;
-};
-
-function new_script_object() {
- return FactoryFunction();
-}
-
-function runTest()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var plugin = document.getElementById("testPlugin");
- var returned_object = plugin.testScriptObjectInvoke("new_script_object", "createObject");
-
- // Make sure the cloned object outlives the plugin.
- /* FIXME(joshia): Enable this and fix the NPObject cleanup so that
- it works in single process mode.
- plugin.parentNode.removeChild(plugin);
- try {
- returned_object.property;
- } catch (e) {
- if (e instanceof ReferenceError)
- document.getElementById("result").innerHTML = "SUCCESS";
- }
- */
-
- document.getElementById("result").innerHTML = "SUCCESS";
-}
-</script>
-
-<body onload="runTest();">
-<pre>
-Test proper tracking of script NPObjects
-
-Test 1: Ensure that script NPObjects are properly tracked (i.e. added to
- the live objects map in V8).
-
-Test 2: Test tracking of derived NPObjects by invoking a method on a
- script object and passing it an internally created NPObject.
-
-<div id="result">FAILURE</div>
-<embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed>
-</body>
-</html>
« no previous file with comments | « LayoutTests/plugins/return-npobject-expected.txt ('k') | LayoutTests/plugins/script-object-invoke-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698