| 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 newStreamCalled = false; | 10 var newStreamCalled = false; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 </script> | 38 </script> |
| 39 | 39 |
| 40 <embed | 40 <embed |
| 41 type="application/x-webkit-test-netscape" | 41 type="application/x-webkit-test-netscape" |
| 42 onStreamLoad="streamStarted()" | 42 onStreamLoad="streamStarted()" |
| 43 onStreamDestroy="streamDestroyed" | 43 onStreamDestroy="streamDestroyed" |
| 44 id="plugin"> | 44 id="plugin"> |
| 45 </body> | 45 </body> |
| 46 <script> | 46 <script> |
| 47 description("This tests that NPP_DestroyStream is called with NPRES_NETW
ORK_ERR not called if a plug-in returns -1 its NPP_Write callback."); | 47 description("This tests that NPP_DestroyStream is called with NPRES_NETW
ORK_ERR not called if a plugin returns -1 its NPP_Write callback."); |
| 48 | 48 |
| 49 var plugin = document.getElementById("plugin"); | 49 var plugin = document.getElementById("plugin"); |
| 50 | 50 |
| 51 plugin.returnNegativeOneFromWrite = true; | 51 plugin.returnNegativeOneFromWrite = true; |
| 52 shouldBeTrue("plugin.returnNegativeOneFromWrite"); | 52 shouldBeTrue("plugin.returnNegativeOneFromWrite"); |
| 53 | 53 |
| 54 plugin.getURLNotify("data:text/html,Test", null, "callback"); | 54 plugin.getURLNotify("data:text/html,Test", null, "callback"); |
| 55 </script> | 55 </script> |
| 56 </html> | 56 </html> |
| 57 | 57 |
| OLD | NEW |