| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function runTest() { | 2 function runTest() { |
| 3 if (window.testRunner) | 3 if (window.testRunner) |
| 4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
| 5 | 5 |
| 6 var testObject = document.getElementById('plugin').testObject; | 6 var testObject = document.getElementById('plugin').testObject; |
| 7 | 7 |
| 8 // Remove the plug-in. The plug-in asserts that shutdown isn't called before | 8 // Remove the plugin. The plugin asserts that shutdown isn't called before |
| 9 // any calls to NP_Deallocate, so this test will time out if that happens. | 9 // any calls to NP_Deallocate, so this test will time out if that happens. |
| 10 document.getElementById('container').innerHTML = ''; | 10 document.getElementById('container').innerHTML = ''; |
| 11 document.getElementById('result').innerHTML = 'SUCCESS'; | 11 document.getElementById('result').innerHTML = 'SUCCESS'; |
| 12 } | 12 } |
| 13 </script> | 13 </script> |
| 14 <body onload="runTest()"> | 14 <body onload="runTest()"> |
| 15 <div id="container"> | 15 <div id="container"> |
| 16 <embed id="plugin" type="application/x-webkit-test-netscape" test="np-deallocate
-called-before-np-shutdown" width=100 height=100></embed> | 16 <embed id="plugin" type="application/x-webkit-test-netscape" test="np-deallocate
-called-before-np-shutdown" width=100 height=100></embed> |
| 17 </div> | 17 </div> |
| 18 <div>This tests that the NP_Deallocate function of an NPObject isn't called befo
re the NP_Shutdown function.</div> | 18 <div>This tests that the NP_Deallocate function of an NPObject isn't called befo
re the NP_Shutdown function.</div> |
| 19 <div id="result">FAILURE</div> | 19 <div id="result">FAILURE</div> |
| OLD | NEW |