|
@ -85,9 +85,9 @@ function testBreakpointOnStart(session) { |
|
|
{ 'method': 'Runtime.runIfWaitingForDebugger' } |
|
|
{ 'method': 'Runtime.runIfWaitingForDebugger' } |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
session. |
|
|
session |
|
|
sendInspectorCommands(commands). |
|
|
.sendInspectorCommands(commands) |
|
|
expectMessages(setupExpectBreakOnLine(0, session.mainScriptPath, session)); |
|
|
.expectMessages(setupExpectBreakOnLine(0, session.mainScriptPath, session)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function testSetBreakpointAndResume(session) { |
|
|
function testSetBreakpointAndResume(session) { |
|
@ -105,9 +105,9 @@ function testSetBreakpointAndResume(session) { |
|
|
'params': { 'scriptId': session.mainScriptId } }, |
|
|
'params': { 'scriptId': session.mainScriptId } }, |
|
|
expectMainScriptSource ], |
|
|
expectMainScriptSource ], |
|
|
]; |
|
|
]; |
|
|
session. |
|
|
session |
|
|
sendInspectorCommands(commands). |
|
|
.sendInspectorCommands(commands) |
|
|
expectMessages([ |
|
|
.expectMessages([ |
|
|
setupExpectConsoleOutput('log', ['A message', 5]), |
|
|
setupExpectConsoleOutput('log', ['A message', 5]), |
|
|
setupExpectBreakOnLine(5, session.mainScriptPath, |
|
|
setupExpectBreakOnLine(5, session.mainScriptPath, |
|
|
session, (id) => scopeId = id), |
|
|
session, (id) => scopeId = id), |
|
@ -131,7 +131,7 @@ function testInspectScope(session) { |
|
|
[ |
|
|
[ |
|
|
{ |
|
|
{ |
|
|
'method': 'Debugger.evaluateOnCallFrame', 'params': { |
|
|
'method': 'Debugger.evaluateOnCallFrame', 'params': { |
|
|
'callFrameId': '{\"ordinal\":0,\"injectedScriptId\":1}', |
|
|
'callFrameId': '{"ordinal":0,"injectedScriptId":1}', |
|
|
'expression': 'k + t', |
|
|
'expression': 'k + t', |
|
|
'objectGroup': 'console', |
|
|
'objectGroup': 'console', |
|
|
'includeCommandLineAPI': true, |
|
|
'includeCommandLineAPI': true, |
|
@ -153,9 +153,9 @@ function testInspectScope(session) { |
|
|
|
|
|
|
|
|
function testWaitsForFrontendDisconnect(session, harness) { |
|
|
function testWaitsForFrontendDisconnect(session, harness) { |
|
|
console.log('[test]', 'Verify node waits for the frontend to disconnect'); |
|
|
console.log('[test]', 'Verify node waits for the frontend to disconnect'); |
|
|
session.sendInspectorCommands({ 'method': 'Debugger.resume'}). |
|
|
session.sendInspectorCommands({ 'method': 'Debugger.resume'}) |
|
|
expectStderrOutput('Waiting for the debugger to disconnect...'). |
|
|
.expectStderrOutput('Waiting for the debugger to disconnect...') |
|
|
disconnect(true); |
|
|
.disconnect(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function runTests(harness) { |
|
|
function runTests(harness) { |
|
|