Add test for r169820.
[WebKit-https.git] / LayoutTests / plugins / npp-set-window-called-during-destruction.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6     <embed type="application/x-webkit-test-netscape" test="npp-set-window-called-during-destruction"></embed>
7     <p>This tests whether a NPP_SetWindow is called during plugin destruction.</p>
8     <script>
9         if (window.testRunner)
10             testRunner.dumpAsText();
11         var embed = document.getElementsByTagName("embed")[0];
12         embed.setWillBeDestroyed();
13         embed.parentNode.removeChild(embed);
14     </script>
15 </body>
16 </html>