Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix formatting in test-inspector-instrumentation-breakpoint
  • Loading branch information
ulitink authored and aduh95 committed May 11, 2024
commit 38aa857c9c9075d74b11857844f0cf5dfd39c7c2
10 changes: 5 additions & 5 deletions test/known_issues/test-inspector-instrumentation-breakpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ async function testBreakpointBeforeScriptExecution(session) {
// Break on start
await session.waitForBreakOnLine(
0, UrlResolve(session.scriptURL().toString(), 'main.js'));
await session.send([{'method': 'Debugger.resume'}]);
await session.send([{ 'method': 'Debugger.resume' }]);

// Script loaded
await session.waitForBreakOnLine(
0, UrlResolve(session.scriptURL().toString(), 'main.js'));
await session.send([{'method': 'Debugger.resume'}]);
await session.send([{ 'method': 'Debugger.resume' }]);

// Script loaded
await session.waitForBreakOnLine(
0, UrlResolve(session.scriptURL().toString(), 'dep.js'));
await session.send([{'method': 'Debugger.resume'}]);
await session.send([{ 'method': 'Debugger.resume' }]);
}

async function runTest() {
const child = new NodeInstance(['--inspect-brk=0'], '',
fixtures.path('inspector-instrumentation-breakpoint', 'main.js'));
const main = fixtures.path('inspector-instrumentation-breakpoint', 'main.js');
const child = new NodeInstance(['--inspect-brk=0'], '', main);

const session = await child.connectInspectorSession();
await testBreakpointBeforeScriptExecution(session);
Expand Down