Fix tests that passed expected input to assert_equals
[tig.git] / test / help / user-command-test
blobde8a7a4cb88fc15f64aba1aed591d276c37c7160
1 #!/bin/sh
3 . libtest.sh
5 export COLUMNS=100
7 tigrc <<EOF
8 bind generic a !?@user-test-cmd
9 bind generic b ?@user-test-cmd
10 bind generic c !?user-test-cmd
11 bind generic d !user-test-cmd
12 bind generic ca !?@git commit --amend --no-edit
13 source $base_dir/../contrib/vim.tigrc
14 EOF
16 steps '
17 :view-help
18 /user-test-cmd<Enter>
19 ?toggle author<Enter>
20 :save-display default.screen
23 stdin <<EOF
24 test
25 EOF
27 test_tig
29 assert_equals 'default.screen' <<EOF
30 oa :toggle author
31 og :toggle line-graphics
32 of :toggle file-name
33 op :toggle ignore-space
34 oi :toggle id
35 ot :toggle commit-title-overflow
36 oF :toggle file-filter
37 or :toggle commit-title-refs
38 @- :toggle diff-context -1
39 @+ :toggle diff-context +1
40 Internal commands:
41 @j :/^@@
42 @k :?^@@
43 External commands:
44 a @?user-test-cmd
45 b @?user-test-cmd
46 d !user-test-cmd
47 cc !git commit
48 ca @?git commit --amend --no-edit
49 [-] search bindings
50 Searching
51 <Down>, <Ctrl-N>, <Ctrl-J> find-next Find next search match
52 <Up>, <Ctrl-P>, <Ctrl-K> find-prev Find previous search match
53 [-] main bindings
54 Option toggling:
55 F :toggle commit-title-refs
56 External commands:
57 C ?git cherry-pick %(commit)
58 [help] - line 76 of 133 77%
59 EOF