OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startBlank(`Tests that call to cons
ole after inspected context was destroyed shouldn't produce crash.`); |
| 3 await session.evaluate(` |
| 4 var iframe = document.createElement('iframe'); |
| 5 document.body.appendChild(iframe); |
| 6 var a = window.console; |
| 7 window.console = iframe.contentWindow.console; |
| 8 iframe.contentWindow.console = a; |
| 9 iframe.remove(); |
| 10 `); |
| 11 testRunner.logMessage(await dp.Runtime.evaluate({expression: 'console.log(239)
;'})); |
| 12 testRunner.completeTest(); |
| 13 }) |
OLD | NEW |