Skip to content

Commit

Permalink
Fix the help tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Oct 18, 2016
1 parent 378f059 commit 39195f8
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 71 deletions.
98 changes: 49 additions & 49 deletions test/help/default-test
Original file line number Diff line number Diff line change
Expand Up @@ -27,63 +27,63 @@ Quick reference for tig keybindings:
[-] generic bindings
View switching
m view-main Show main view
d view-diff Show diff view
l view-log Show log view
t view-tree Show tree view
f view-blob Show blob view
b view-blame Show blame view
r view-refs Show refs view
s, S view-status Show status view
c view-stage Show stage view
y view-stash Show stash view
g view-grep Show grep view
p view-pager Show pager view
h view-help Show help view
m view-main Show main view
d view-diff Show diff view
l view-log Show log view
t view-tree Show tree view
f view-blob Show blob view
b view-blame Show blame view
r view-refs Show refs view
s, S view-status Show status view
c view-stage Show stage view
y view-stash Show stash view
g view-grep Show grep view
p view-pager Show pager view
h view-help Show help view
View manipulation
<Enter> enter Enter and open selected line
< back Go back to the previous view s
<Down>, <Ctrl-N>, J next Move to next
<Up>, <Ctrl-P>, K previous Move to previous
',' parent Move to parent
<Tab> view-next Move focus to the next view
R, <F5> refresh Reload and refresh view
O maximize Maximize the current view
q view-close Close the current view
Q quit Close all views and quit
[help] - line 1 of 109 25%
<Enter> enter Enter and open selected line
< back Go back to the previous view st
<Down>, <Ctrl-N>, J next Move to next
<Up>, <Ctrl-P>, K previous Move to previous
',' parent Move to parent
<Tab> view-next Move focus to the next view
R, <F5> refresh Reload and refresh view
O maximize Maximize the current view
q view-close Close the current view
Q quit Close all views and quit
[help] - line 1 of 112 25%
EOF

assert_equals 'help-search.screen' <<EOF
Quick reference for tig keybindings:
[-] generic bindings
View switching
m view-main Show main view
d view-diff Show diff view
l view-log Show log view
t view-tree Show tree view
f view-blob Show blob view
b view-blame Show blame view
r view-refs Show refs view
s, S view-status Show status view
c view-stage Show stage view
y view-stash Show stash view
g view-grep Show grep view
p view-pager Show pager view
h view-help Show help view
m view-main Show main view
d view-diff Show diff view
l view-log Show log view
t view-tree Show tree view
f view-blob Show blob view
b view-blame Show blame view
r view-refs Show refs view
s, S view-status Show status view
c view-stage Show stage view
y view-stash Show stash view
g view-grep Show grep view
p view-pager Show pager view
h view-help Show help view
View manipulation
<Enter> enter Enter and open selected line
< back Go back to the previous view s
<Down>, <Ctrl-N>, J next Move to next
<Up>, <Ctrl-P>, K previous Move to previous
',' parent Move to parent
<Tab> view-next Move focus to the next view
R, <F5> refresh Reload and refresh view
O maximize Maximize the current view
q view-close Close the current view
Q quit Close all views and quit
[help] - line 18 of 109 25%
<Enter> enter Enter and open selected line
< back Go back to the previous view st
<Down>, <Ctrl-N>, J next Move to next
<Up>, <Ctrl-P>, K previous Move to previous
',' parent Move to parent
<Tab> view-next Move focus to the next view
R, <F5> refresh Reload and refresh view
O maximize Maximize the current view
q view-close Close the current view
Q quit Close all views and quit
[help] - line 18 of 112 25%
EOF

assert_equals 'help-collapsed.screen' <<EOF
Expand Down Expand Up @@ -115,5 +115,5 @@ View specific actions
External commands:
C !git commit
[-] stage bindings
[help] - line 4 of 42 66%
[help] - line 4 of 43 65%
EOF
44 changes: 22 additions & 22 deletions test/help/user-command-test
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@ EOF
test_tig

assert_equals 'default.screen' <<EOF
oa :toggle author
og :toggle line-graphics
of :toggle file-name
op :toggle ignore-space
oi :toggle id
ot :toggle commit-title-overflow
oF :toggle file-filter
or :toggle commit-title-refs
@- :toggle diff-context -1
@+ :toggle diff-context +1
oa :toggle author
og :toggle line-graphics
of :toggle file-name
op :toggle ignore-space
oi :toggle id
ot :toggle commit-title-overflow
oF :toggle file-filter
or :toggle commit-title-refs
@- :toggle diff-context -1
@+ :toggle diff-context +1
Internal commands:
@j :/^@@
@k :?^@@
@j :/^@@
@k :?^@@
External commands:
a @?user-test-cmd
b @?user-test-cmd
d !user-test-cmd
cc !git commit
ca @?git commit --amend --no-edit
a @?user-test-cmd
b @?user-test-cmd
d !user-test-cmd
cc !git commit
ca @?git commit --amend --no-edit
[-] search bindings
Searching
<Down>, <Ctrl-N>, <Ctrl-J> find-next Find next search match
<Up>, <Ctrl-P>, <Ctrl-K> find-prev Find previous search match
<Down>, <Ctrl-N>, <Ctrl-J> find-next Find next search match
<Up>, <Ctrl-P>, <Ctrl-K> find-prev Find previous search match
[-] main bindings
Option toggling:
F :toggle commit-title-refs
F :toggle commit-title-refs
External commands:
C ?git cherry-pick %(commit)
[help] - line 76 of 133 77%
C ?git cherry-pick %(commit)
[help] - line 78 of 136 77%
EOF

0 comments on commit 39195f8

Please sign in to comment.