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

Unified Diff: chrome/test/data/npapi/npobject_released_on_destruction.html

Issue 10806056: Move plugin_browsertests.cc from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to mac+win fixes Created 8 years, 5 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: chrome/test/data/npapi/npobject_released_on_destruction.html
===================================================================
--- chrome/test/data/npapi/npobject_released_on_destruction.html (revision 147965)
+++ chrome/test/data/npapi/npobject_released_on_destruction.html (working copy)
@@ -1,49 +0,0 @@
-<html>
-
-<head>
-<script src="npapi.js"></script>
-<script>
-
-function returnedMethod() {
-}
-
-function dummyMethod() {
- return returnedMethod;
-}
-
-var test_object;
-function Init() {
- var plg = window.document["plg"];
- // Create the NPObjectStub in the plugin process first. This object's
- // deallocate function will release the NPObject below.
-
- // Then create an NPObjectProxy in the plugin process that holds on to the
- // dummyMethod function above.
- plg.remember(dummyMethod);
-}
-</script>
-</head>
-
-
-<body>
-<div id="statusPanel" style="border: 1px solid red; width: 100%">
-Test running....
-</div>
-
-
-NPObject released on destruction<p>
-
-Tests that if a plugin creates an NPObject and releases it on destruction,
-there's no crash when the plugin goes away.
-
-
-<DIV ID=PluginDiv>
-<embed name="plg" type="application/x-webkit-test-netscape"></embed>
-</DIV>
-<script>
- Init();
-</script>
-
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698