mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: Test emacs notmuch-hello with no saved searches to display.
Haippily, this works just fine, but we might as well test that.
This commit is contained in:
parent
dec2d57fbc
commit
3fe90a955e
2 changed files with 15 additions and 0 deletions
|
@ -16,6 +16,11 @@ output=$(test_emacs '(setq notmuch-show-empty-saved-searches t) (setq notmuch-sa
|
||||||
expected=$(cat $EXPECTED/notmuch-hello-with-empty)
|
expected=$(cat $EXPECTED/notmuch-hello-with-empty)
|
||||||
test_expect_equal "$output" "$expected"
|
test_expect_equal "$output" "$expected"
|
||||||
|
|
||||||
|
test_begin_subtest "No saved searches displayed (all with 0 results)"
|
||||||
|
output=$(test_emacs '(setq notmuch-saved-searches '\''(("empty" . "tag:doesnotexist"))) (notmuch-hello) (message (buffer-string))' 2>&1)
|
||||||
|
expected=$(cat $EXPECTED/notmuch-hello-no-saved-searches)
|
||||||
|
test_expect_equal "$output" "$expected"
|
||||||
|
|
||||||
test_begin_subtest "Basic notmuch-search view in emacs"
|
test_begin_subtest "Basic notmuch-search view in emacs"
|
||||||
output=$(test_emacs '(notmuch-search "tag:inbox") (notmuch-test-wait) (message (buffer-string))' 2>&1)
|
output=$(test_emacs '(notmuch-search "tag:inbox") (notmuch-test-wait) (message (buffer-string))' 2>&1)
|
||||||
expected=$(cat $EXPECTED/notmuch-search-tag-inbox)
|
expected=$(cat $EXPECTED/notmuch-search-tag-inbox)
|
||||||
|
|
10
test/emacs.expected-output/notmuch-hello-no-saved-searches
Normal file
10
test/emacs.expected-output/notmuch-hello-no-saved-searches
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
Welcome to notmuch. You have 50 messages.
|
||||||
|
|
||||||
|
Search:
|
||||||
|
|
||||||
|
[Show all tags]
|
||||||
|
|
||||||
|
Type a search query and hit RET to view matching threads.
|
||||||
|
Edit saved searches with the `edit' button.
|
||||||
|
Hit RET or click on a saved search or tag name to view matching threads.
|
||||||
|
`=' refreshes this screen. `s' jumps to the search box. `q' to quit.
|
Loading…
Reference in a new issue