Reverting r42321 because it broke some layout tests.
[WebKit-https.git] / LayoutTests / plugins / invoke.html
1 <html>
2 <body>
3 <embed name="plg" type="application/x-webkit-test-netscape"></embed>
4 <p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=7708">bug 7708</a>:
5 REGRESSION: Flash callback to JavaScript function not working.</p>
6 <div id=res>FAILURE</div>
7 <script>
8
9     if (window.layoutTestController)
10         layoutTestController.dumpAsText();
11     
12     function MyCallback() {
13         document.getElementById('res').innerHTML = 'SUCCESS';
14     }
15     
16     try {
17         
18         plg.testCallback('MyCallback');
19
20     } catch (ex) {
21         alert("Exception: " + ex.description);
22     }
23 </script>
24 </body>
25 </html>