test: add test for hiding/showing signature in notmuch-show view
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 22 May 2011 18:57:55 +0000 (22:57 +0400)
committerCarl Worth <cworth@cworth.org>
Tue, 24 May 2011 22:30:45 +0000 (15:30 -0700)
test/emacs

index 75dec89c965e814a2c68e5fc352b5540564b2c4f..e2dfa9ab9b5ac84b13aef5e6681c40d07a30e2b0 100755 (executable)
@@ -124,4 +124,15 @@ first_line=$(echo "$expected" | head -n1)
 output=$(test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-view-raw-message) (message (buffer-string))' 2>&1 | 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@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