diff options
author | Carl Worth <cworth@cworth.org> | 2010-10-29 15:49:59 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-10-29 15:50:42 -0700 |
commit | dec2d57fbcaf470e97c37cd40d2953b2404f07b6 (patch) | |
tree | e0e4337023b8162127017655b50d82a6460ee58f /test/emacs | |
parent | ee578338a691bb948a00d9372f9fe2b898f2b267 (diff) |
test: Test emacs notmuch-hello when displaying a saved search with 0 results.
This test verifies that the bug fix in the previous commit is working.
Diffstat (limited to 'test/emacs')
-rwxr-xr-x | test/emacs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -11,6 +11,11 @@ output=$(test_emacs '(notmuch-hello) (message (buffer-string))' 2>&1) expected=$(cat $EXPECTED/notmuch-hello) test_expect_equal "$output" "$expected" +test_begin_subtest "Saved search with 0 results" +output=$(test_emacs '(setq notmuch-show-empty-saved-searches t) (setq notmuch-saved-searches '\''(("inbox" . "tag:inbox") ("unread" . "tag:unread") ("empty" . "tag:doesnotexist"))) (notmuch-hello) (message (buffer-string))' 2>&1) +expected=$(cat $EXPECTED/notmuch-hello-with-empty) +test_expect_equal "$output" "$expected" + test_begin_subtest "Basic notmuch-search view in emacs" output=$(test_emacs '(notmuch-search "tag:inbox") (notmuch-test-wait) (message (buffer-string))' 2>&1) expected=$(cat $EXPECTED/notmuch-search-tag-inbox) |