Lines Matching refs:cli
16 const cli = startCLI([script]); constant
19 cli.quit();
23 return cli.waitForInitialBreak()
24 .then(() => cli.waitForPrompt())
25 .then(() => cli.command('breakpoints'))
27 assert.match(cli.output, /No breakpoints yet/);
29 .then(() => cli.command('sb(2)'))
30 .then(() => cli.command('sb(3)'))
31 .then(() => cli.command('breakpoints'))
33 assert.ok(cli.output.includes(`#0 ${script}:2`));
34 assert.ok(cli.output.includes(`#1 ${script}:3`));
36 .then(() => cli.stepCommand('c')) // hit line 2
37 .then(() => cli.stepCommand('c')) // hit line 3
39 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 3 });
41 .then(() => cli.command('restart'))
42 .then(() => cli.waitForInitialBreak())
44 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
46 .then(() => cli.stepCommand('c'))
48 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 2 });
50 .then(() => cli.stepCommand('c'))
52 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 3 });
54 .then(() => cli.command('breakpoints'))
56 const msg = `SCRIPT: ${script}, OUTPUT: ${cli.output}`;
57 assert.ok(cli.output.includes(`#0 ${script}:2`), msg);
58 assert.ok(cli.output.includes(`#1 ${script}:3`), msg);
60 .then(() => cli.quit())