| <html> |
| <body> |
| <embed name="plg" type="application/x-webkit-test-netscape"></embed> |
| <p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=7708">bug 7708</a>: |
| REGRESSION: Flash callback to JavaScript function not working.</p> |
| <div id=res>FAILURE</div> |
| <script> |
| |
| if (window.layoutTestController) |
| layoutTestController.dumpAsText(); |
| |
| function MyCallback() { |
| document.getElementById('res').innerHTML = 'SUCCESS'; |
| } |
| |
| try { |
| |
| plg.testCallback('MyCallback'); |
| |
| } catch (ex) { |
| alert("Exception: " + ex.description); |
| } |
| </script> |
| </body> |
| </html> |