Add test for r169820.
[WebKit-https.git] / LayoutTests / plugins / npp-new-fails.html
1 <head>
2 <script src="../resources/js-test-pre.js"></script>
3 <script>
4 if (window.testRunner) {
5     testRunner.dumpAsText();
6     testRunner.waitUntilDone();
7 }
8
9 function runTest()
10 {
11         var foo = document.getElementById("TestElement").someMadeUpBar;
12
13         testPassed("Did not crash trying to access the plug-in script object.");
14
15     if (window.testRunner)
16         testRunner.notifyDone();
17 }
18
19 </script>
20
21 </head>
22 <body onload="runTest();">
23 <embed id="TestElement" type="application/x-webkit-test-netscape" test="npp-new-fails"></embed>
24 <p id="description"></p>
25 <div id="console"></div>
26 </body>
27
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");
30 </script>