X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Femacs;h=f9da3184e6ed78b945b96124d6567c31a8d94efd;hp=e6fa648ff270414d451e1b3ac756d4e79516ee89;hb=dec2d57fbcaf470e97c37cd40d2953b2404f07b6;hpb=ee578338a691bb948a00d9372f9fe2b898f2b267 diff --git a/test/emacs b/test/emacs index e6fa648f..f9da3184 100755 --- a/test/emacs +++ b/test/emacs @@ -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)