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