[PATCH 3/3] test: add test for hiding/showing signature in notmuch-show view

Dmitry Kurochkin dmitry.kurochkin at gmail.com
Sun May 22 11:57:55 PDT 2011


---
 test/emacs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index f2983a7..ccf02af 100755
--- a/test/emacs
+++ b/test/emacs
@@ -141,4 +141,15 @@ first_line=$(echo "$expected" | head -n1)
 output=$(test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a at mail.gmail.com") (notmuch-show-view-raw-message) (princ (buffer-string))' | sed -ne "/$first_line/,\$ p")
 test_expect_equal "$output" "$expected"
 
+test_begin_subtest "Hiding/showing signature in notmuch-show view"
+maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165 at dottiness.seas.harvard.edu)
+output=$(test_emacs "(notmuch-show \"$maildir_storage_thread\")
+		     (search-forward \"Click/Enter to show.\")
+		     (button-activate (button-at (point)))
+		     (search-backward \"Click/Enter to hide.\")
+		     (button-activate (button-at (point)))
+		     (princ (buffer-string))")
+expected=$(cat $EXPECTED/notmuch-show-thread-maildir-storage)
+test_expect_equal "$output" "$expected"
+
 test_done
-- 
1.7.5.1



More information about the notmuch mailing list