X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT450-emacs-show.sh;fp=test%2FT450-emacs-show.sh;h=64f174cf63d709576234f41c639828ea964c5c7b;hp=e9c59cd3aeb6c3fc2aedd0abdf7182e84255d978;hb=bde8ea5d1d92be15c6fb4c06e31d4fae750a12f0;hpb=e580ce00580a86fbf2fb6d7630ce8bc30d7a8156 diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index e9c59cd3..64f174cf 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -100,6 +100,26 @@ test_emacs '(let ((notmuch-show-depth-limit -1)) (test-visible-output))' test_expect_equal_file $EXPECTED/notmuch-show-depth OUTPUT + +test_begin_subtest "Hide bodies of messages by height" +test_emacs '(let ((notmuch-show-height-limit -1)) + (notmuch-search "thread:{id:87ocn0qh6d.fsf@yoom.home.cworth.org}") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +# folding all messages by height or depth should look the same +test_expect_equal_file $EXPECTED/notmuch-show-depth OUTPUT + +test_begin_subtest "Hide bodies of messages; show only leaves." +test_emacs '(let ((notmuch-show-height-limit 0)) + (notmuch-search "thread:{id:87ocn0qh6d.fsf@yoom.home.cworth.org}") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file $EXPECTED/notmuch-show-height-0 OUTPUT + test_begin_subtest "Hide bodies of messages (depth > 1)" test_emacs '(let ((notmuch-show-depth-limit 1)) (notmuch-search "thread:{id:87ocn0qh6d.fsf@yoom.home.cworth.org}")