andersca | 16743d2 | 2007-07-06 20:52:42 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <script> |
| 3 | function debug(str) { |
| 4 | document.getElementById('console').innerHTML += str + "<br>"; |
| 5 | } |
| 6 | |
| 7 | function pluginCallback() { |
| 8 | debug('SUCCESS'); |
| 9 | if (window.layoutTestController) |
| 10 | layoutTestController.notifyDone(); |
| 11 | } |
| 12 | |
| 13 | function runTest() { |
| 14 | if (window.layoutTestController) { |
| 15 | layoutTestController.dumpAsText(); |
| 16 | layoutTestController.waitUntilDone(); |
| 17 | } |
| 18 | |
| 19 | var plugin = document.plugin; |
| 20 | |
| 21 | debug('plugin object is: ' + plugin); |
| 22 | plugin.getURL('javascript:pluginCallback()', '_self') |
| 23 | } |
| 24 | </script> |
| 25 | <body onload="runTest()"> |
| 26 | <object name="plugin" type="application/x-webkit-test-netscape"> |
| 27 | <span> |
| 28 | <embed name="plugin" type="application/x-webkit-test-netscape"></embed> |
| 29 | </span> |
| 30 | </object> |
| 31 | <div> |
| 32 | This tests that it's possible to control an embed that is nested inside an object with a span tag in between. |
| 33 | </div> |
| 34 | <div id="console"> |
| 35 | </div> |
| 36 | </body> |
| 37 | </html> |