Skip to content

Commit

Permalink
squash: fix more existing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark committed Sep 20, 2016
1 parent 3d4d0f4 commit 89ff183
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions test/inspector/inspector-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ function checkHttpResponse(port, path, callback) {
http.get({port, path}, function(res) {
let response = '';
res.setEncoding('utf8');
res.
on('data', (data) => response += data.toString()).
on('end', () => callback(JSON.parse(response)));
res
.on('data', (data) => response += data.toString())
.on('end', () => callback(JSON.parse(response)));
});
}

Expand Down
20 changes: 10 additions & 10 deletions test/inspector/test-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ function testBreakpointOnStart(session) {
{ 'method': 'Runtime.runIfWaitingForDebugger' }
];

session.
sendInspectorCommands(commands).
expectMessages(setupExpectBreakOnLine(0, session.mainScriptPath, session));
session
.sendInspectorCommands(commands)
.expectMessages(setupExpectBreakOnLine(0, session.mainScriptPath, session));
}

function testSetBreakpointAndResume(session) {
Expand All @@ -105,9 +105,9 @@ function testSetBreakpointAndResume(session) {
'params': { 'scriptId': session.mainScriptId } },
expectMainScriptSource ],
];
session.
sendInspectorCommands(commands).
expectMessages([
session
.sendInspectorCommands(commands)
.expectMessages([
setupExpectConsoleOutput('log', ['A message', 5]),
setupExpectBreakOnLine(5, session.mainScriptPath,
session, (id) => scopeId = id),
Expand All @@ -131,7 +131,7 @@ function testInspectScope(session) {
[
{
'method': 'Debugger.evaluateOnCallFrame', 'params': {
'callFrameId': '{\"ordinal\":0,\"injectedScriptId\":1}',
'callFrameId': '{"ordinal":0,"injectedScriptId":1}',
'expression': 'k + t',
'objectGroup': 'console',
'includeCommandLineAPI': true,
Expand All @@ -153,9 +153,9 @@ function testInspectScope(session) {

function testWaitsForFrontendDisconnect(session, harness) {
console.log('[test]', 'Verify node waits for the frontend to disconnect');
session.sendInspectorCommands({ 'method': 'Debugger.resume'}).
expectStderrOutput('Waiting for the debugger to disconnect...').
disconnect(true);
session.sendInspectorCommands({ 'method': 'Debugger.resume'})
.expectStderrOutput('Waiting for the debugger to disconnect...')
.disconnect(true);
}

function runTests(harness) {
Expand Down

0 comments on commit 89ff183

Please sign in to comment.