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

Side by Side Diff: chrome/test/data/npapi/self_delete_plugin_geturl.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, 4 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 <title>Self Deleting Plugin Test - GetURL</title>
4 <script src="npapi.js"></script>
5 <script>
6 function DeletePluginWithinScript() {
7 var plugin_div = document.getElementById("PluginDiv");
8 plugin_div.innerHTML = "Object Deleted";
9 }
10
11 function CallGetUrl() {
12 var plg = window.document["plg"];
13 plg.getURL("javascript:DeletePluginWithinScript()");
14 }
15 </script>
16 </head>
17
18 <body>
19
20 <h2>Test to delete a plugin during script execution</h2>
21
22 <p>
23 This test is for a corner case when a plugin executes a script
24 that deletes the invoking plugin itself.
25 </p>
26
27 <DIV ID=PluginDiv>
28 <embed name="plg" type="application/x-webkit-test-netscape"></embed>
29 </DIV>
30 <script>
31 CallGetUrl();
32 onSuccess("self_delete_plugin_geturl", 1);
33 </script>
34
35 </body>
36 </html>
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698