Skip to content

Conversation

@claudiorodriguez
Copy link
Contributor

Adds the following tests for tty readline:

  • go to beginning and end of line
  • wordLeft
  • wordRight
  • deleteWordLeft
  • deleteWordRight
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

@claudiorodriguez claudiorodriguez added readline Issues and PRs related to the built-in readline module. test Issues and PRs related to the tests. labels Mar 27, 2017
@Fishrock123
Copy link
Contributor

So, to be clear... this test file runes with stdio as pipes, not ttys.

By the look of the code this doesn't actually touch TTY at all, maybe that should be removed form the commit message?

@Fishrock123
Copy link
Contributor

@claudiorodriguez
Copy link
Contributor Author

@Fishrock123 sorry, what I meant is that it improves coverage for readline when going through _ttyWrite, that is, when the Interface is constructed with terminal: true. The commit message might cause confusion with the tty module, I can definitely remove it.

@Fishrock123
Copy link
Contributor

if _ttyWrite fits into the message that might be ideal?

@claudiorodriguez
Copy link
Contributor Author

@Fishrock123 sure thing, I'll wait for the CI run to complete then fix that

@claudiorodriguez
Copy link
Contributor Author

@Fishrock123 completely forgot about this, does the new message seem alright to you?

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG if CI is green. This needs a rebase though

@BridgeAR
Copy link
Member

@claudiorodriguez would you be so kind and rebase this?

@claudiorodriguez
Copy link
Contributor Author

@BridgeAR rebased, cheers
New CI run: https://ci.nodejs.org/job/node-test-pull-request/9957/

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM but it would be nice if my two comments would be addressed before landing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use common.mustCall instead of called in all of these functions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super tiny nit - would you be so kind and upper case all beginnings of comments?

Adds the following tests for tty readline:
- go to beginning and end of line
- wordLeft
- wordRight
- deleteWordLeft
- deleteWordRight
@claudiorodriguez
Copy link
Contributor Author

@BridgeAR comments addressed, cheers

@BridgeAR
Copy link
Member

@BridgeAR
Copy link
Member

Landed in 7a95392

@BridgeAR BridgeAR closed this Sep 23, 2017
BridgeAR pushed a commit that referenced this pull request Sep 23, 2017
Adds the following tests for tty readline:
- go to beginning and end of line
- wordLeft
- wordRight
- deleteWordLeft
- deleteWordRight

PR-URL: #12064
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax pushed a commit to addaleax/ayo that referenced this pull request Sep 23, 2017
Adds the following tests for tty readline:
- go to beginning and end of line
- wordLeft
- wordRight
- deleteWordLeft
- deleteWordRight

PR-URL: nodejs/node#12064
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
jasnell pushed a commit that referenced this pull request Sep 25, 2017
Adds the following tests for tty readline:
- go to beginning and end of line
- wordLeft
- wordRight
- deleteWordLeft
- deleteWordRight

PR-URL: #12064
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 17, 2017
Adds the following tests for tty readline:
- go to beginning and end of line
- wordLeft
- wordRight
- deleteWordLeft
- deleteWordRight

PR-URL: #12064
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Oct 17, 2017
MylesBorins pushed a commit that referenced this pull request Oct 25, 2017
Adds the following tests for tty readline:
- go to beginning and end of line
- wordLeft
- wordRight
- deleteWordLeft
- deleteWordRight

PR-URL: #12064
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

readline Issues and PRs related to the built-in readline module. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants