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

Side by Side Diff: chrome/test/data/npapi/npn_plugin_delete_create_in_evaluate.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="npapi.js"></script>
4 <script>
5
6 function DeletePluginWithinScript() {
7 var plugin_div = document.getElementById("PluginDiv");
8 var html = plugin_div.innerHTML;
9 html = html.replace("npobject_delete_create_plugin_in_evaluate",
10 "invoke_js_function_on_create");
11 plugin_div.innerHTML = "Object Deleted";
12 plugin_div.innerHTML = html;
13 }
14
15 function PluginCreated() {
16 onSuccess("npobject_delete_create_plugin_in_evaluate", 1);
17 }
18
19 </script>
20 </head>
21
22 <body>
23 <div id="statusPanel" style="border: 1px solid red; width: 100%">
24 Test running....
25 </div>
26
27 Tests the case where a plugin instance is deleted and created in the context
28 of the NPN_Evaluate call.
29
30 <DIV ID=PluginDiv>
31 <embed type="application/vnd.npapi-test"
32 src="foo"
33 name="npobject_delete_create_plugin_in_evaluate"
34 id="1"
35 mode="np_embed"
36 >
37 </DIV>
38
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698