()
| 308 | } |
| 309 | |
| 310 | async runToCompletion() { |
| 311 | console.log('[test]', 'Verify node waits for the frontend to disconnect'); |
| 312 | await this.send({ 'method': 'Debugger.resume' }); |
| 313 | await this.waitForNotification((notification) => { |
| 314 | if (notification.method === 'Debugger.paused') { |
| 315 | this.send({ 'method': 'Debugger.resume' }); |
| 316 | } |
| 317 | return notification.method === 'Runtime.executionContextDestroyed' && |
| 318 | notification.params.executionContextId === 1; |
| 319 | }); |
| 320 | await this.waitForDisconnect(); |
| 321 | } |
| 322 | |
| 323 | async waitForDisconnect() { |
| 324 | while ((await this._instance.nextStderrString()) !== |
no test coverage detected