aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/emacs
diff options
context:
space:
mode:
authorGravatar Gregor Zattler <telegraph@gmx.net>2011-11-24 23:03:24 +0100
committerGravatar David Bremner <bremner@debian.org>2011-11-25 12:41:59 -0500
commit629dbac626b714d50b185b00aa3ade5bef5e1cbd (patch)
treee8c7a5b15cc676eecf3441046f2768882a0d459a /test/emacs
parent06156f70bffa551a4f5152d7c5acddedda97625c (diff)
emacs: test notmuch show with fourfold message indentation
Previous behaviour was to indent messages in a thread according to depth by one space per level. This commit tests if setting notmuch-indent-messages-width to `4' provides a message thread with four spaces of indentation thread depth.
Diffstat (limited to 'test/emacs')
-rwxr-xr-xtest/emacs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/emacs b/test/emacs
index da6d22b9..198c27b0 100755
--- a/test/emacs
+++ b/test/emacs
@@ -64,6 +64,13 @@ test_emacs "(let ((notmuch-indent-messages-width 0))
(test-output))"
test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-without-indentation
+test_begin_subtest "Basic notmuch-show view in emacs with fourfold indentation"
+maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)
+test_emacs "(let ((notmuch-indent-messages-width 4))
+ (notmuch-show \"$maildir_storage_thread\")
+ (test-output))"
+test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-with-fourfold-indentation
+
test_begin_subtest "notmuch-show for message with invalid From"
add_message "[subject]=\"message-with-invalid-from\"" \
"[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""