]> git.notmuchmail.org Git - notmuch/blob - test/emacs-show
test: add test for hiding Original Message region at beginning of a message
[notmuch] / test / emacs-show
1 #!/usr/bin/env bash
2
3 test_description="Testing emacs notmuch-show view"
4 . test-lib.sh
5
6 test_begin_subtest "Hiding Original Message region at beginning of a message"
7 test_subtest_known_broken
8 message_id='OriginalMessageHiding.1@notmuchmail.org'
9 add_message \
10     [id]="$message_id" \
11     '[subject]="Hiding Original Message region at beginning of a message"' \
12     '[body]="-----Original Message-----
13 Text here."'
14
15 cat <<EOF >EXPECTED
16 Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox)
17 Subject: Hiding Original Message region at beginning of a message
18 To: Notmuch Test Suite <test_suite@notmuchmail.org>
19 Date: Fri, 05 Jan 2001 15:43:57 +0000
20
21 [ 2-line hidden original message. Click/Enter to show. ]
22 EOF
23
24 test_emacs "(notmuch-show \"id:$message_id\")
25             (test-visible-output)"
26 test_expect_equal_file OUTPUT EXPECTED
27
28 test_done