[PATCH 3/3] emacs: Test for thread-outlining

Daniel Schoepe daniel.schoepe at googlemail.com
Sun Jun 12 16:31:20 PDT 2011


---
 test/emacs                                         |    5 +++++
 .../notmuch-show-thread-outline                    |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline

diff --git a/test/emacs b/test/emacs
index f2e9598..8d3a3c5 100755
--- a/test/emacs
+++ b/test/emacs
@@ -31,6 +31,11 @@ maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU316
 test_emacs "(notmuch-show \"$maildir_storage_thread\") (princ (buffer-string))" >OUTPUT
 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage
 
+test_begin_subtest "Thread outlining in notmuch-show"
+maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165 at dottiness.seas.harvard.edu)
+test_emacs "(notmuch-show \"$maildir_storage_thread\") (notmuch-show-outline) (switch-to-buffer (notmuch-show-outline-buffer-name)) (princ (buffer-string))" >OUTPUT
+test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-outline
+
 test_begin_subtest "notmuch-show for message with invalid From"
 add_message "[subject]=\"message-with-invalid-from\"" "[from]=\"\\\"Invalid \\\" From\\\" <test_suite at notmuchmail.org>\""
 thread=$(notmuch search --output=threads subject:message-with-invalid-from)
diff --git a/test/emacs.expected-output/notmuch-show-thread-outline b/test/emacs.expected-output/notmuch-show-thread-outline
new file mode 100644
index 0000000..b210ba7
--- /dev/null
+++ b/test/emacs.expected-output/notmuch-show-thread-outline
@@ -0,0 +1,7 @@
+Lars Kellogg-Stedman <lars at seas.harvard.edu> - 2009-11-17
+ Mikhail Gusarov <dottedmag at dottedmag.net> - 2009-11-17
+  Lars Kellogg-Stedman <lars at seas.harvard.edu> - 2009-11-17
+   "Mikhail Gusarov" <dottedmag at dottedmag.net> - 2009-11-17
+   "Keith Packard" <keithp at keithp.com> - 2009-11-17
+    Lars Kellogg-Stedman <lars at seas.harvard.edu> - 2009-11-18
+ "Carl Worth" <cworth at cworth.org> - 2009-11-18
-- 
1.7.5.4



More information about the notmuch mailing list