| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
| 4 <script> | |
| 5 | |
| 6 function test() | |
| 7 { | |
| 8 var swapConsoleAndRemoveIframe = "\n\ | |
| 9 var a = window.console;\n\ | |
| 10 window.console = iframe.contentWindow.console;\n\ | |
| 11 iframe.contentWindow.console = a;\n\ | |
| 12 document.getElementById(\"iframe\").remove();\n\ | |
| 13 "; | |
| 14 | |
| 15 InspectorTest.sendCommand("Runtime.evaluate", { "expression": swapConsoleAnd
RemoveIframe }, runConsoleLog); | |
| 16 function runConsoleLog(result) | |
| 17 { | |
| 18 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "console.l
og(239);" }, () => InspectorTest.completeTest()); | |
| 19 } | |
| 20 } | |
| 21 </script> | |
| 22 </head> | |
| 23 <iframe id="iframe"></iframe> | |
| 24 <body onLoad="runTest();"> | |
| 25 Tests that call to console after inspected context was destroyed shouldn't produ
ce crash. | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |