WebCore:
[WebKit-https.git] / LayoutTests / plugins / throw-on-dealloc.html
1 <html>
2 <head><title>ThrowOnDealloc</title>
3 <script>
4 function print(message)
5 {
6     var paragraph = document.createElement('p');
7     paragraph.appendChild(document.createTextNode(message));
8     document.getElementById('console').appendChild(paragraph);
9 }
10
11 function test() 
12 {
13     if (window.layoutTestController)
14         layoutTestController.dumpAsText();
15     if (!window.objCPlugin)
16         return print('FAIL - no objCPlugin');
17     
18     // Set a flag to indicate that the object should throw
19     // an exception on dealloc of the plugin
20     objCPlugin.throwOnDealloc = true;
21 }
22 </script>
23 </head>
24 <body onload="test();">
25 <div id='console'/>
26 </body>
27 </html>