Fix tests that passed expected input to assert_equals
[tig.git] / test / help / default-test
blob43c17f9964cd828716e77213823c41a45b4ab498
1 #!/bin/sh
3 . libtest.sh
5 steps '
6 :view-help
7 :save-display help-default.screen
9 :/View manipulation
10 :save-display help-search.screen
13 :enter
15 :enter
16 :save-display help-collapsed.screen
19 stdin <<EOF
20 test
21 EOF
23 test_tig
25 assert_equals 'help-default.screen' <<EOF
26 Quick reference for tig keybindings:
28 [-] generic bindings
29 View switching
30 m view-main Show main view
31 d view-diff Show diff view
32 l view-log Show log view
33 t view-tree Show tree view
34 f view-blob Show blob view
35 b view-blame Show blame view
36 r view-refs Show refs view
37 s, S view-status Show status view
38 c view-stage Show stage view
39 y view-stash Show stash view
40 g view-grep Show grep view
41 p view-pager Show pager view
42 h view-help Show help view
43 View manipulation
44 <Enter> enter Enter and open selected line
45 < back Go back to the previous view s
46 <Down>, <Ctrl-N>, J next Move to next
47 <Up>, <Ctrl-P>, K previous Move to previous
48 ',' parent Move to parent
49 <Tab> view-next Move focus to the next view
50 R, <F5> refresh Reload and refresh view
51 O maximize Maximize the current view
52 q view-close Close the current view
53 Q quit Close all views and quit
54 [help] - line 1 of 109 25%
55 EOF
57 assert_equals 'help-search.screen' <<EOF
58 Quick reference for tig keybindings:
60 [-] generic bindings
61 View switching
62 m view-main Show main view
63 d view-diff Show diff view
64 l view-log Show log view
65 t view-tree Show tree view
66 f view-blob Show blob view
67 b view-blame Show blame view
68 r view-refs Show refs view
69 s, S view-status Show status view
70 c view-stage Show stage view
71 y view-stash Show stash view
72 g view-grep Show grep view
73 p view-pager Show pager view
74 h view-help Show help view
75 View manipulation
76 <Enter> enter Enter and open selected line
77 < back Go back to the previous view s
78 <Down>, <Ctrl-N>, J next Move to next
79 <Up>, <Ctrl-P>, K previous Move to previous
80 ',' parent Move to parent
81 <Tab> view-next Move focus to the next view
82 R, <F5> refresh Reload and refresh view
83 O maximize Maximize the current view
84 q view-close Close the current view
85 Q quit Close all views and quit
86 [help] - line 18 of 109 25%
87 EOF
89 assert_equals 'help-collapsed.screen' <<EOF
90 Quick reference for tig keybindings:
92 [+] generic bindings
93 [+] search bindings
94 [-] main bindings
95 Option toggling:
96 G :toggle commit-title-graph
97 F :toggle commit-title-refs
98 External commands:
99 C ?git cherry-pick %(commit)
100 [-] diff bindings
101 Option toggling:
102 [ :toggle diff-context -1
103 ] :toggle diff-context +1
104 Internal commands:
105 @ :/^@@
106 [-] refs bindings
107 External commands:
108 C ?git checkout %(branch)
109 ! ?git branch -D %(branch)
110 [-] status bindings
111 View specific actions
112 u status-update Stage/unstage chunk or file changes
113 ! status-revert Revert chunk or file changes
114 M status-merge Merge file using external tool
115 External commands:
116 C !git commit
117 [-] stage bindings
118 [help] - line 4 of 42 66%