diff options
author | Dmitry Kurochkin <dmitry.kurochkin@gmail.com> | 2011-05-27 01:38:34 +0400 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-15 07:07:32 -0700 |
commit | 59b251ef940609dac7e17528065a39544463e0b4 (patch) | |
tree | aea5bbbb96aa9dd82d03632dab0f8c8d778e4a25 /test/emacs | |
parent | 4557af30649e7fdf11b8194e405cb272f13887da (diff) |
test emacs: Add tests for hiding messages in notmuch-show view
This test is expected to fail as it exposes a current bug, (which we
hope to fix soon).
Diffstat (limited to 'test/emacs')
-rwxr-xr-x | test/emacs | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -196,4 +196,20 @@ Thanks for the advice! I will be sure to put it to good use. [ 9-line hidden original message. Click/Enter to show. ]" > EXPECTED test_expect_equal_file OUTPUT EXPECTED +test_begin_subtest "Hiding message in notmuch-show view" +output=$(test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com") + (notmuch-show-toggle-message) + (princ (visible-buffer-string))') +expected=$(cat $EXPECTED/notmuch-show-thread-with-hidden-messages) +test_expect_equal "$output" "$expected" + +test_begin_subtest "Hiding message with visible citation in notmuch-show view" +output=$(test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com") + (search-forward "Click/Enter to show.") + (button-activate (button-at (point))) + (notmuch-show-toggle-message) + (princ (visible-buffer-string))') +expected=$(cat $EXPECTED/notmuch-show-thread-with-hidden-messages) +test_expect_equal "$output" "$expected" + test_done |