mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
test: Force reply to use html2text for consistency
The output of the HTML reply test in the emacs suite can vary depending on which HTML renderers are installed on the machine running the tests. The renderer that is always available is emacs's builtin html2text function. In order to get consistency, force the test to use html2text even if other renderers are available.
This commit is contained in:
parent
e02c179c8f
commit
97efed0f08
1 changed files with 2 additions and 5 deletions
|
@ -447,7 +447,7 @@ test_expect_equal_file OUTPUT EXPECTED
|
||||||
test_begin_subtest "Reply within emacs to an html-only message"
|
test_begin_subtest "Reply within emacs to an html-only message"
|
||||||
add_message '[content-type]="text/html"' \
|
add_message '[content-type]="text/html"' \
|
||||||
'[body]="Hi,<br />This is an <b>HTML</b> test message.<br /><br />OK?"'
|
'[body]="Hi,<br />This is an <b>HTML</b> test message.<br /><br />OK?"'
|
||||||
test_emacs "(let ((message-hidden-headers '()))
|
test_emacs "(let ((message-hidden-headers '()) (mm-text-html-renderer 'html2text))
|
||||||
(notmuch-show \"id:${gen_msg_id}\")
|
(notmuch-show \"id:${gen_msg_id}\")
|
||||||
(notmuch-show-reply)
|
(notmuch-show-reply)
|
||||||
(test-output))"
|
(test-output))"
|
||||||
|
@ -463,10 +463,7 @@ User-Agent: Notmuch/XXX Emacs/XXX
|
||||||
--text follows this line--
|
--text follows this line--
|
||||||
Notmuch Test Suite <test_suite@notmuchmail.org> writes:
|
Notmuch Test Suite <test_suite@notmuchmail.org> writes:
|
||||||
|
|
||||||
> Hi,
|
> Hi,This is an HTML test message.OK?
|
||||||
> This is an HTML test message.
|
|
||||||
>
|
|
||||||
> OK?
|
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file OUTPUT EXPECTED
|
test_expect_equal_file OUTPUT EXPECTED
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue