test: `notmuch-show-advance-and-archive' with invisible signature
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 6 Nov 2011 09:03:58 +0000 (13:03 +0400)
committerDavid Bremner <bremner@debian.org>
Tue, 8 Nov 2011 00:38:37 +0000 (20:38 -0400)
Add Emacs test to check that `notmuch-show-advance-and-archive'
works for the last message in thread with invisible signature.

test/emacs

index 0303d7d1d311ccfa68fc4952ad516675903af28f..76b18e7dd4fe974e192fd017284178fc04b05aad 100755 (executable)
@@ -368,6 +368,21 @@ test_emacs "(notmuch-show \"id:$id\") \
             (test-visible-output \"EXPECTED\")"
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest 'notmuch-show-advance-and-archive with invisible signature'
+test_subtest_known_broken
+message1='id:20091118010116.GC25380@dottiness.seas.harvard.edu'
+message2='id:1258491078-29658-1-git-send-email-dottedmag@dottedmag.net'
+test_emacs "(notmuch-search \"$message1 or $message2\")
+           (notmuch-test-wait)
+           (notmuch-search-show-thread)
+           (goto-char (point-max))
+           (redisplay)
+           (notmuch-show-advance-and-archive)
+           (test-output)"
+test_emacs "(notmuch-show \"$message2\")
+           (test-output \"EXPECTED\")"
+test_expect_equal_file OUTPUT EXPECTED
+
 test_begin_subtest "Refresh show buffer"
 test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
            (test-visible-output "EXPECTED")