mirror of https://github.com/lukechilds/node.git
Browse Source
Fixes: https://github.com/nodejs/node/issues/14577 PR-URL: https://github.com/nodejs/node/pull/14581 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>canary-base
Eugene Ostroukhov
8 years ago
6 changed files with 53 additions and 11 deletions
@ -0,0 +1,22 @@ |
|||||
|
'use strict'; |
||||
|
const common = require('../common'); |
||||
|
|
||||
|
common.skipIfInspectorDisabled(); |
||||
|
|
||||
|
const assert = require('assert'); |
||||
|
const { NodeInstance } = require('./inspector-helper.js'); |
||||
|
|
||||
|
async function runTests() { |
||||
|
const instance = new NodeInstance(undefined, 'console.log(10)'); |
||||
|
const session = await instance.connectInspectorSession(); |
||||
|
await session.send([ |
||||
|
{ 'method': 'Runtime.enable' }, |
||||
|
{ 'method': 'Debugger.enable' }, |
||||
|
{ 'method': 'Runtime.runIfWaitingForDebugger' } |
||||
|
]); |
||||
|
await session.waitForBreakOnLine(0, '[eval]'); |
||||
|
await session.runToCompletion(); |
||||
|
assert.strictEqual(0, (await instance.expectShutdown()).exitCode); |
||||
|
} |
||||
|
|
||||
|
runTests(); |
Loading…
Reference in new issue