| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 var NPERR_NO_ERROR = 0; | 3 var NPERR_NO_ERROR = 0; |
| 4 var NPERR_GENERIC_ERROR = 1; | 4 var NPERR_GENERIC_ERROR = 1; |
| 5 | 5 |
| 6 function callback(result) { | 6 function callback(result) { |
| 7 var d = document.getElementById('result'); | 7 var d = document.getElementById('result'); |
| 8 | 8 |
| 9 if (result == NPERR_NO_ERROR) | 9 if (result == NPERR_NO_ERROR) |
| 10 d.innerHTML = "SUCCESS" | 10 d.innerHTML = "SUCCESS" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 document.write("Cannot run interactively"); | 27 document.write("Cannot run interactively"); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 </script> | 30 </script> |
| 31 <body onload="runtest()"> | 31 <body onload="runtest()"> |
| 32 <embed id="plg" type="application/x-webkit-test-netscape"></embed> | 32 <embed id="plg" type="application/x-webkit-test-netscape"></embed> |
| 33 This tests that we won't crash when a plugin tries to open an URL in a new windo
w when the application does not create the window. If this test is successful, t
he word SUCCESS should be seen below. | 33 This tests that we won't crash when a plugin tries to open an URL in a new windo
w when the application does not create the window. If this test is successful, t
he word SUCCESS should be seen below. |
| 34 <div id="result">FAILED</div> | 34 <div id="result">FAILED</div> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |