emacs: test notmuch-indent-messages-width default
authorGregor Zattler <telegraph@gmx.net>
Thu, 24 Nov 2011 22:03:22 +0000 (23:03 +0100)
committerDavid Bremner <bremner@debian.org>
Fri, 25 Nov 2011 17:41:04 +0000 (12:41 -0500)
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".

test/emacs

index 3bf2e29adc018e1b02e21aed3af478dbe0d5f8c9..20d52d8097c802da53dbfcc1d26dc3f1f09e7b55 100755 (executable)
@@ -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>\""