Lines Matching refs:cli
16 const cli = startCLI(['--port=0', script]);
19 cli.quit();
23 return cli.waitForInitialBreak()
24 .then(() => cli.waitForPrompt())
25 .then(() => cli.command('sb("break.js", 3)'))
26 .then(() => cli.command('sb("break.js", 9)'))
27 .then(() => cli.command('breakpoints'))
29 assert.ok(cli.output.includes(`#0 ${script}:3`));
30 assert.ok(cli.output.includes(`#1 ${script}:9`));
32 .then(() => cli.command('clearBreakpoint("break.js", 4)'))
34 assert.match(cli.output, /Could not find breakpoint/);
36 .then(() => cli.command('clearBreakpoint("not-such-script.js", 3)'))
38 assert.match(cli.output, /Could not find breakpoint/);
40 .then(() => cli.command('clearBreakpoint("break.js", 3)'))
41 .then(() => cli.command('breakpoints'))
43 assert.ok(cli.output.includes(`#0 ${script}:9`));
45 .then(() => cli.stepCommand('cont'))
48 cli.output.includes(`break in ${script}:9`),
51 .then(() => cli.quit())