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

Side by Side Diff: content/test/data/npapi/self_delete_plugin_invoke_alert.html

Issue 1182303010: Delete the NPAPI plugin browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 6 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Self Deleting Plugin Test - Invoke</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 alert('plugin deleted');
10 }
11 function SuccessCallback() {
12 onSuccess("self_delete_plugin_invoke_alert", 1);
13 }
14 function TimeoutCallback() {
15 var plg = window.document["plg"];
16 var plg2 = window.document["plg2"];
17 plg.testCallback("DeletePluginWithinScript");
18 plg2.testCallback("SuccessCallback"); // will fail if the plugin crashed
19 }
20 </script>
21 </head>
22
23 <body>
24
25 <h2>Test to delete a plugin during script execution</h2>
26
27 <p>
28 This test is for a corner case when a plugin executes a script
29 that deletes the invoking plugin itself then shows a modal dialog.
30 See http://code.google.com/p/chromium/issues/detail?id=4270.
31 </p>
32
33 <DIV ID=PluginDiv>
34 <embed name="plg" type="application/x-webkit-test-netscape"></embed>
35 </DIV>
36 <embed name="plg2" type="application/x-webkit-test-netscape"></embed>
37 <script>
38 setTimeout('TimeoutCallback()', 0);
39 </script>
40
41 </body>
42 </html>
43
OLDNEW
« no previous file with comments | « content/test/data/npapi/self_delete_plugin_invoke.html ('k') | content/test/data/npapi/self_delete_plugin_stream.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698