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

Unified Diff: webkit/data/layout_tests/chrome/plugins/script-object-invoke.html

Issue 504079: Remove tests that have been upstreamed:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add test_expectations.txt mods Created 11 years 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: webkit/data/layout_tests/chrome/plugins/script-object-invoke.html
===================================================================
--- webkit/data/layout_tests/chrome/plugins/script-object-invoke.html (revision 35112)
+++ webkit/data/layout_tests/chrome/plugins/script-object-invoke.html (working copy)
@@ -1,60 +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.layoutTestController)
- layoutTestController.dumpAsText();
-
- var plugin = document.getElementById("testPlugin");
- var returned_object = plugin.testScriptObjectInvoke("new_script_object", "createObject", plugin);
-
- /* Bug# 1175346 - This will crash in single process mode (or test shell)
- TODO(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>

Powered by Google App Engine
This is Rietveld 408576698