aboutsummaryrefslogtreecommitdiff
path: root/test/emacs
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2011-10-08 20:21:26 -0700
committerDavid Bremner <bremner@debian.org>2011-10-09 08:26:08 -0300
commit808fbff530319fe841f2f3c5b607d2ce3f0c424d (patch)
treead6637064aa9fb7339c52da3d7259f4e9ed14c02 /test/emacs
parent918b8740df20b61bbae229a6a46928446d431ed0 (diff)
test: add two emacs tests for show mode refresh
The first test tests that the notmuch-show-refresh-view function produces the exact same output for an unmodified show buffer. This test should pass since the relevant functionality has already been applied. The second test tests show refresh for a show buffer that has been modified by navigation and message visibility toggling. Ideally refresh-view should preserve this state of the notmuch-show buffer. Unfortunately it currently does not, so this test is know to be broken and is marked as such.
Diffstat (limited to 'test/emacs')
-rwxr-xr-xtest/emacs18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/emacs b/test/emacs
index 8b627c7..0303d7d 100755
--- a/test/emacs
+++ b/test/emacs
@@ -368,4 +368,22 @@ test_emacs "(notmuch-show \"id:$id\") \
(test-visible-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")
+ (notmuch-show-refresh-view)
+ (test-visible-output)'
+test_expect_equal_file OUTPUT EXPECTED
+
+test_begin_subtest "Refresh modified show buffer"
+test_subtest_known_broken
+test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
+ (notmuch-show-toggle-message)
+ (notmuch-show-next-message)
+ (notmuch-show-toggle-message)
+ (test-visible-output "EXPECTED")
+ (notmuch-show-refresh-view)
+ (test-visible-output)'
+test_expect_equal_file OUTPUT EXPECTED
+
test_done