X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT450-emacs-show.sh;h=e9c59cd3aeb6c3fc2aedd0abdf7182e84255d978;hp=0749dc9dda4621ec7bdeed562701210b869e978e;hb=e580ce00580a86fbf2fb6d7630ce8bc30d7a8156;hpb=1d254bd35e0a4b816f70ff9babaf0f3681460423 diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index 0749dc9d..e9c59cd3 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -109,6 +109,24 @@ test_emacs '(let ((notmuch-show-depth-limit 1)) (test-visible-output))' test_expect_equal_file $EXPECTED/notmuch-show-depth-1 OUTPUT +test_begin_subtest "Hide bodies of messages by size" +test_emacs '(let ((notmuch-show-max-text-part-size 1)) + (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-size OUTPUT + +test_begin_subtest "Hide bodies of messages by size > 450" +test_emacs '(let ((notmuch-show-max-text-part-size 450)) + (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-size-450 OUTPUT + test_begin_subtest "notmuch-show: elide non-matching messages (w/ notmuch-show-toggle-elide-non-matching)" test_emacs '(let ((notmuch-show-only-matching-messages nil)) (notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"")