Lines Matching refs:cli
16 const cli = startCLI([script]); constant
19 cli.quit();
23 cli.waitForInitialBreak()
24 .then(() => cli.waitForPrompt())
26 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
29 .then(() => cli.command('c'))
31 .then(() => cli.waitFor(/disconnect|FATAL ERROR/))
34 .then(() => cli.stepCommand('r'))
35 .then(() => cli.waitForInitialBreak())
37 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
39 .then(() => cli.command('breakOnException'))
40 .then(() => cli.stepCommand('c'))
42 assert.ok(cli.output.includes(`exception in ${script}:3`));
44 .then(() => cli.stepCommand('c'))
46 assert.ok(cli.output.includes(`exception in ${script}:9`));
50 .then(() => cli.command('breakOnUncaught'))
51 .then(() => cli.stepCommand('r')) // Also, the setting survives the restart.
52 .then(() => cli.waitForInitialBreak())
54 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
56 .then(() => cli.stepCommand('c'))
58 assert.ok(cli.output.includes(`exception in ${script}:9`));
62 .then(() => cli.command('breakOnNone'))
63 .then(() => cli.stepCommand('r'))
64 .then(() => cli.waitForInitialBreak())
66 assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
68 .then(() => cli.command('c'))
70 .then(() => cli.waitFor(/disconnect|FATAL ERROR/))
72 .then(() => cli.quit())