| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <script src="../resources/js-test.js"></script> | 2 <script src="../resources/js-test.js"></script> |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) { | 4 if (window.testRunner) { |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function runTest() | 9 function runTest() |
| 10 { | 10 { |
| 11 var foo = document.getElementById("TestElement").someMadeUpBar; | 11 var foo = document.getElementById("TestElement").someMadeUpBar; |
| 12 | 12 |
| 13 » testPassed("Did not crash trying to access the plug-in script object."); | 13 » testPassed("Did not crash trying to access the plugin script object."); |
| 14 | 14 |
| 15 if (window.testRunner) | 15 if (window.testRunner) |
| 16 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 </script> | 19 </script> |
| 20 | 20 |
| 21 </head> | 21 </head> |
| 22 <body onload="runTest();"> | 22 <body onload="runTest();"> |
| 23 <embed id="TestElement" type="application/x-webkit-test-netscape" test="npp-new-
fails"></embed> | 23 <embed id="TestElement" type="application/x-webkit-test-netscape" test="npp-new-
fails"></embed> |
| 24 <p id="description"></p> | 24 <p id="description"></p> |
| 25 <div id="console"></div> | 25 <div id="console"></div> |
| 26 </body> | 26 </body> |
| 27 | 27 |
| 28 <script> | 28 <script> |
| 29 description("http://webkit.org/b/95026 - Tests that access to the plug-in script
object after the plug-in fails to initialize doesn't crash"); | 29 description("http://webkit.org/b/95026 - Tests that access to the plugin script
object after the plugin fails to initialize doesn't crash"); |
| 30 </script> | 30 </script> |
| OLD | NEW |