mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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).
This commit is contained in:
parent
4557af3064
commit
59b251ef94
2 changed files with 19 additions and 0 deletions
16
test/emacs
16
test/emacs
|
@ -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
|
[ 9-line hidden original message. Click/Enter to show. ]" > EXPECTED
|
||||||
test_expect_equal_file OUTPUT 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
|
test_done
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Jan Janak <jan@ryngle.com> (2009-11-17) (inbox unread)
|
||||||
|
Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
|
||||||
|
Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
|
Loading…
Reference in a new issue