GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: increase coverage for readline · nodejs/node@5fc0f5e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-readline-interface.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-readline-interface.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-readline-interface.js
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ function assertCursorRowsAndCols(rli, rows, cols) {
6363
assert.strictEqual(cursorPos.cols, cols);
6464
}
6565

66+
{
67+
const input = new FakeInput();
68+
const rl = readline.Interface({ input });
69+
assert(rl instanceof readline.Interface);
70+
}
71+
6672
[
6773
undefined,
6874
50,
@@ -657,6 +663,13 @@ function assertCursorRowsAndCols(rli, rows, cols) {
657663
rli.close();
658664
}
659665

666+
// Close readline interface
667+
{
668+
const [rli, fi] = getInterface({ terminal: true, prompt: '' });
669+
fi.emit('keypress', '.', { ctrl: true, name: 'c' });
670+
assert(rli.closed);
671+
}
672+
660673
// Multi-line input cursor position
661674
{
662675
const [rli, fi] = getInterface({ terminal: true, prompt: '' });

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.