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

Unified Diff: LayoutTests/plugins/npruntime/script-tests/browser-object-identity.js

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/script-tests/browser-object-identity.js
diff --git a/LayoutTests/plugins/npruntime/script-tests/browser-object-identity.js b/LayoutTests/plugins/npruntime/script-tests/browser-object-identity.js
deleted file mode 100644
index 6a058ba50d5dc02e32c13c49690688907cb4605c..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/npruntime/script-tests/browser-object-identity.js
+++ /dev/null
@@ -1,38 +0,0 @@
-description("Test that plugin doesn't get a new browser object instance each time")
-
-function gc()
-{
- if (window.GCController)
- return GCController.collectAll();
-
- for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
- var s = new String("abc");
- }
-}
-
-embed = document.createElement("embed");
-embed.type = "application/x-webkit-test-netscape";
-document.body.appendChild(embed);
-
-var obj = new XMLHttpRequest;
-obj.foo = "bar";
-embed.remember(obj);
-obj = null;
-gc();
-shouldBe("embed.getAndForgetRememberedObject().foo", "'bar'");
-gc();
-
-obj = new XMLHttpRequest;
-shouldBe("embed.refCount(obj)", "1");
-shouldBe("embed.refCount(obj)", "1");
-embed.remember(obj);
-shouldBe("embed.refCount(obj)", "2");
-shouldBe("embed.getRememberedObject()", "obj");
-shouldBe("embed.getRememberedObject()", "obj");
-shouldBe("embed.refCount(obj)", "2");
-shouldBe("embed.getAndForgetRememberedObject()", "obj");
-shouldBe("embed.refCount(obj)", "1");
-obj = null;
-gc();
-
-var successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698