| var plugin = document.getElementById("testPlugin"); |
| var retval = plugin.testInvokeDefault( |
| if (f == this && str == 'test') |
| retval = plugin.testInvokeDefault(window.location); |
| document.getElementById('result').innerHTML = 'SUCCESS' |
| <body onload="runTest();"> |
| This tests that it's possible to call NPN_InvokeDefault on a JavaScript object. If this test succeeded, the text "SUCCESS" should be shown below. |
| <div id="result">FAILURE</div> |
| <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed> |