Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320)
[chromium-blink-merge.git] / content / test / data / npapi / execute_script_delete_in_paint.html
blobfa9ff21bb3559c80a84f7350edd19a8a23f17286
1 <html>
3 <head>
4 <script src="npapi.js"></script>
6 <script>
7 function DeletePluginWithinScript() {
8 var plugin_div = document.getElementById("PluginDiv");
9 plugin_div.innerHTML = "Object Deleted";
10 onSuccess("execute_script_delete_in_paint", 1);
12 </script>
13 </head>
15 <body>
16 <div id="statusPanel" style="border: 1px solid red; width: 100%">
17 Test running....
18 </div>
21 NPObject Proxy Test<p>
23 Tests the case where a plugin instance is deleted in the context
24 of a synchronous paint.
26 <DIV ID=PluginDiv>
27 <embed type="application/vnd.npapi-test"
28 src="foo"
29 name="execute_script_delete_in_paint"
30 id="1"
31 mode="np_embed"
33 </DIV>
34 <script>
35 var height = document.body.offsetHeight;
36 </script>
38 </body>
39 </html>