unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 70bc66dd12902f9f2fd8525d6de6c5a9403ac989 990 bytes (raw)
name: test/emacs-message-hiding.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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]="OriginalMessageHiding.1@notmuchmail.org"' \
    '[from]="Sender <sender@example.com>"' \
    '[to]=mailinglist@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 <sender@example.com> (2010-01-05) (inbox)
Subject: hiding an Original Message
To: mailinglist@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:\"OriginalMessageHiding.1@notmuchmail.org\"")
   (visible-buffer-string)))
'

test_subtest_known_broken
test_expect_equal_file EXPECTED OUTPUT

test_done

debug log:

solving 70bc66d ...
found 70bc66d in https://yhetil.org/notmuch/1327562380-12894-4-git-send-email-dme@dme.org/

applying [1/1] https://yhetil.org/notmuch/1327562380-12894-4-git-send-email-dme@dme.org/
diff --git a/test/emacs-message-hiding.sh b/test/emacs-message-hiding.sh
new file mode 100755
index 0000000..70bc66d

Checking patch test/emacs-message-hiding.sh...
Applied patch test/emacs-message-hiding.sh cleanly.

index at:
100755 70bc66dd12902f9f2fd8525d6de6c5a9403ac989	test/emacs-message-hiding.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).