Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: improve readline coverage to check end and clear keys #11131

Closed
Closed
Changes from all commits
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
test: improve readline coverage to check end and clear keys
chiaki-yokoo committed Jan 27, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 82f4d10414fdae7cdd233ea4085ce215ed95cf1f
8 changes: 8 additions & 0 deletions test/parallel/test-readline-keys.js
Original file line number Diff line number Diff line change
@@ -175,6 +175,14 @@ addTest('\x1b[D\x1b[C\x1b[D\x1b[C'.split(''), [
{ name: 'right', sequence: '\x1b[C', code: '[C' },
]);

// end clear end clear
addTest('\x1b[F\x1b[E\x1b[F\x1b[E', [
{ name: 'end', sequence: '\x1b[F', code: '[F' },
{ name: 'clear', sequence: '\x1b[E', code: '[E' },
{ name: 'end', sequence: '\x1b[F', code: '[F' },
{ name: 'clear', sequence: '\x1b[E', code: '[E' },
]);

// escape sequences mixed with regular ones
addTest('\x1b[DD\x1b[2DD\x1b[2^D', [
{ name: 'left', sequence: '\x1b[D', code: '[D' },