X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Femacs;h=c6b926774728769a4510fe04fea584304a43c026;hp=f9da3184e6ed78b945b96124d6567c31a8d94efd;hb=2d4b3e33481baf98a2bf185304d693855dca296a;hpb=dec2d57fbcaf470e97c37cd40d2953b2404f07b6 diff --git a/test/emacs b/test/emacs index f9da3184..c6b92677 100755 --- a/test/emacs +++ b/test/emacs @@ -16,15 +16,20 @@ output=$(test_emacs '(setq notmuch-show-empty-saved-searches t) (setq notmuch-sa expected=$(cat $EXPECTED/notmuch-hello-with-empty) 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" output=$(test_emacs '(notmuch-search "tag:inbox") (notmuch-test-wait) (message (buffer-string))' 2>&1) expected=$(cat $EXPECTED/notmuch-search-tag-inbox) test_expect_equal "$output" "$expected" -test_begin_subtest "Navigation of notmuch-hello to search results - [XXX: Need to decide the correct order of the search results]" +test_begin_subtest "Navigation of notmuch-hello to search results" output=$(test_emacs '(notmuch-hello) (goto-char (point-min)) (re-search-forward "inbox") (widget-button-press (point)) (notmuch-test-wait) (message (buffer-string))' 2>&1) -test_expect_equal_failure "$output" "$expected" +expected=$(cat $EXPECTED/notmuch-hello-view-inbox) +test_expect_equal "$output" "$expected" test_begin_subtest "Basic notmuch-show view in emacs" maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)