aboutsummaryrefslogtreecommitdiff
path: root/test/emacs
diff options
context:
space:
mode:
authorGregor Zattler <telegraph@gmx.net>2011-11-24 23:03:22 +0100
committerDavid Bremner <bremner@debian.org>2011-11-25 12:41:04 -0500
commit647635fc9ee3d4b185e34ee1b945666a3245f61f (patch)
tree8a9a3c1902e942db0851c4cc9e88d3a9332fd45c /test/emacs
parent46eb1c116a5c103b87ef3291403ea5883f0f0b7d (diff)
emacs: test notmuch-indent-messages-width default
Previous behaviour was to indent messages in a thread according to depth by one space per level. This is still the case with notmuch-indent-messages-width default value `1'. This test succeeds if output with default value is same as in "Basic notmuch-show view in emacs".
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 3bf2e29..20d52d8 100755
--- a/test/emacs
+++ b/test/emacs
@@ -50,6 +50,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\")
(test-output)"
test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage
+test_begin_subtest "Basic notmuch-show view in emacs default indentation"
+maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)
+test_emacs "(let ((notmuch-indent-messages-width 1))
+ (notmuch-show \"$maildir_storage_thread\")
+ (test-output))"
+test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage
+
test_begin_subtest "notmuch-show for message with invalid From"
add_message "[subject]=\"message-with-invalid-from\"" \
"[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""