Add test for r169820.
[WebKit-https.git] / LayoutTests / plugins / js-from-destroy.html
1 <html>
2 <script>
3 if (window.testRunner) {
4     testRunner.dumpAsText();
5     testRunner.waitUntilDone();
6     testRunner.setXSSAuditorEnabled(true);
7 }
8
9 function runtest()
10 {
11     frames[0].document.getElementById("plg").foobar; // Force plug-in load.
12
13     location = "data:text/html,PASS if didn't crash." +
14         "<script>" + 
15         "if (window.testRunner)" +
16         "   testRunner.notifyDone();" +
17         "</scr" + "ipt>";
18 }
19
20
21 </script>
22 <body onload="runtest()">
23 <iframe id="frame" src="resources/js-from-destroy-frame.html"></iframe>
24 </body>
25 </html>