| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <p id="description"></p> | 6 <p id="description"></p> |
| 7 <div id="console"></div> | 7 <div id="console"></div> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var destroyStreamCalled = false; | 10 var destroyStreamCalled = false; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 </script> | 35 </script> |
| 36 | 36 |
| 37 <embed | 37 <embed |
| 38 type="application/x-webkit-test-netscape" | 38 type="application/x-webkit-test-netscape" |
| 39 onStreamLoad="streamStarted()" | 39 onStreamLoad="streamStarted()" |
| 40 onStreamDestroy="streamDestroyed" | 40 onStreamDestroy="streamDestroyed" |
| 41 onURLNotify="requestCompleted()" | 41 onURLNotify="requestCompleted()" |
| 42 id="plugin"> | 42 id="plugin"> |
| 43 </body> | 43 </body> |
| 44 <script> | 44 <script> |
| 45 description("This tests that NPP_DestroyStream is not called if a plug-i
n returns an error from its NPP_NewStream callback."); | 45 description("This tests that NPP_DestroyStream is not called if a plugin
returns an error from its NPP_NewStream callback."); |
| 46 | 46 |
| 47 var plugin = document.getElementById("plugin"); | 47 var plugin = document.getElementById("plugin"); |
| 48 | 48 |
| 49 plugin.returnErrorFromNewStream = true; | 49 plugin.returnErrorFromNewStream = true; |
| 50 shouldBeTrue("plugin.returnErrorFromNewStream"); | 50 shouldBeTrue("plugin.returnErrorFromNewStream"); |
| 51 | 51 |
| 52 plugin.getURLNotify("data:,", null, "callback"); | 52 plugin.getURLNotify("data:,", null, "callback"); |
| 53 </script> | 53 </script> |
| 54 </html> | 54 </html> |
| 55 | 55 |
| OLD | NEW |