(sessionA, sessionB)
| 44 | } |
| 45 | |
| 46 | async function testSuspend(sessionA, sessionB) { |
| 47 | console.log('[test]', 'Breaking in code and verifying events are fired'); |
| 48 | await Promise.all([ |
| 49 | sessionA.waitForNotification('Debugger.paused', 'Initial sessionA paused'), |
| 50 | sessionB.waitForNotification('Debugger.paused', 'Initial sessionB paused'), |
| 51 | ]); |
| 52 | sessionA.send({ 'method': 'Debugger.resume' }); |
| 53 | |
| 54 | await sessionA.waitForNotification('Runtime.consoleAPICalled', |
| 55 | 'Console output'); |
| 56 | sessionA.send({ 'method': 'Debugger.pause' }); |
| 57 | return Promise.all([ |
| 58 | sessionA.waitForNotification('Debugger.paused', 'SessionA paused'), |
| 59 | sessionB.waitForNotification('Debugger.paused', 'SessionB paused'), |
| 60 | ]); |
| 61 | } |
| 62 | |
| 63 | async function runTest() { |
| 64 | const child = new NodeInstance(undefined, script); |
no test coverage detected
searching dependent graphs…