mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
658 B
23 lines
658 B
8 years ago
|
'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();
|