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

Unified Diff: chrome/test/data/npapi/npobject_lifetime_test.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_lifetime_test.html
===================================================================
--- chrome/test/data/npapi/npobject_lifetime_test.html (revision 147965)
+++ chrome/test/data/npapi/npobject_lifetime_test.html (working copy)
@@ -1,58 +0,0 @@
-<html>
-
-<head>
-<script src="npapi.js"></script>
-</head>
-
-
-<body>
-<div id="statusPanel" style="border: 1px solid red; width: 100%">
-Test running....
-</div>
-
-
-NPObject Lifetime test<p>
-
-Tests the case where a plugin holds on to an NPObject reference
-to another plugin in a different frame in the page and whether
-the npobject is callable when the frame is destroyed.
-
-<div ID=npobject_lifetime_test_instance2>
-<iframe src="npobject_lifetime_test_second_instance.html" name="plugin_frame">
-</iframe>
-</div>
-
-<embed type="application/vnd.npapi-test"
- src="foo"
- name="npobject_lifetime_test"
- id="1"
- mode="np_embed">
-
-<script>
-
-function GetSecondPluginInstance() {
- var plugin_frame = window.frames["plugin_frame"];
- if (!plugin_frame) {
- alert("failed to find frame in frames list");
- return;
- }
-
- var plugin = plugin_frame.document.getElementById(2);
- if (!plugin) {
- alert("Failed to locate second plugin");
- return;
- }
- return plugin;
-}
-
-function DeleteSecondPluginInstance() {
- var frame_div = document.getElementById("npobject_lifetime_test_instance2");
- if (frame_div.parentNode && frame_div.parentNode.removeChild) {
- frame_div.parentNode.removeChild(frame_div);
- }
-}
-</script>
-
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698