-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. help/default-test The action name field is wider causing re-alignment of help text. 2. tigrc/parse-test Comment for a key binding is now exposed as help text. 3. help/user-command-comment-test Add a new test for defining user comments for user commands.
- Loading branch information
1 parent
9370f51
commit 2f35bf6
Showing
3 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/sh | ||
|
||
. libtest.sh | ||
|
||
export TIGRC_SYSTEM=does-not-exist | ||
|
||
test_case user-command-comment \ | ||
--args='status' \ | ||
--tigrc=" | ||
bind generic : prompt # User comment for a builtin command is not exposed | ||
bind generic , none # User comment does not interfere with a null binding | ||
bind generic u1 !user | ||
bind generic u2 !user # This is a user commentary for a simple user command | ||
bind generic u3 !user 1 2 3 # This is a user commentary for a user command with parameters | ||
bind generic u4 !user command with a long parameter list but no user commentary | ||
" \ | ||
--script=" | ||
:view-help | ||
" \ | ||
<<EXPECTED_HELP_VIEW | ||
Quick reference for tig keybindings: | ||
[-] generic bindings | ||
Misc | ||
: prompt Open the prompt | ||
External commands: | ||
u1 !user | ||
u2 !user This is a user commentary for a simple user command | ||
u3 !user 1 2 3 This is a user commentary for a user command with parameters | ||
u4 !user command with a long parameter list but no user commentary | ||
[help] - line 1 of 10 100% | ||
EXPECTED_HELP_VIEW | ||
|
||
run_test_cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters