--- test/emacs-message-hiding.sh | 37 +++++++++++++++++++++++++++++++++++++ test/notmuch-test | 1 + 2 files changed, 38 insertions(+), 0 deletions(-) create mode 100755 test/emacs-message-hiding.sh
diff --git a/test/emacs-message-hiding.sh b/test/emacs-message-hiding.sh new file mode 100755 index 0000000..70bc66d --- /dev/null +++ b/test/emacs-message-hiding.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +test_description="emacs Original Message hiding" +. test-lib.sh + +test_begin_subtest "Hiding an Original Message region at point-min" +add_message \ + '[id]="originalmessagehidin...@notmuchmail.org"' \ + '[from]="Sender <sen...@example.com>"' \ + '[to]=mailingl...@notmuchmail.org' \ + '[subject]="hiding an Original Message"' \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \ + '[body]="-----Original Message----- +Text here. +"' + +cat > EXPECTED <<EOF +Sender <sen...@example.com> (2010-01-05) (inbox) +Subject: hiding an Original Message +To: mailingl...@notmuchmail.org +Date: Tue, 05 Jan 2010 15:43:56 -0000 + +[ 2-line hidden original message. Click/Enter to show. ] + +EOF + +test_emacs ' +(notmuch-test-run + (let ((notmuch-show-insert-text/plain-hook (quote notmuch-wash-excerpt-citations))) + (notmuch-show "id:\"originalmessagehidin...@notmuchmail.org\"") + (visible-buffer-string))) +' + +test_subtest_known_broken +test_expect_equal_file EXPECTED OUTPUT + +test_done diff --git a/test/notmuch-test b/test/notmuch-test index 3f1740c..6631f87 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -54,6 +54,7 @@ TESTS=" argument-parsing emacs-test-functions.sh emacs-address-cleaning.sh + emacs-message-hiding.sh " TESTS=${NOTMUCH_TESTS:=$TESTS} -- 1.7.8.3 _______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch