1 Return-Path: <dme@dme.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id A62A140EC28
\r
6 for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 07:45:36 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id wQgScIIXFCgC for <notmuch@notmuchmail.org>;
\r
16 Wed, 25 Jan 2012 07:45:35 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 CF87A429E3C for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 07:45:34 -0800
\r
22 Received: by wgbdt12 with SMTP id dt12so4941154wgb.2
\r
23 for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 07:45:33 -0800 (PST)
\r
25 Received: by 10.180.95.105 with SMTP id dj9mr28891128wib.18.1327506333716;
\r
26 Wed, 25 Jan 2012 07:45:33 -0800 (PST)
\r
27 Received: from hotblack-desiato.hh.sledj.net
\r
28 (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])
\r
29 by mx.google.com with ESMTPS id u12sm478657wiv.10.2012.01.25.07.45.31
\r
30 (version=TLSv1/SSLv3 cipher=OTHER);
\r
31 Wed, 25 Jan 2012 07:45:32 -0800 (PST)
\r
32 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
33 id DB8429FF26; Wed, 25 Jan 2012 15:45:29 +0000 (GMT)
\r
34 From: David Edmondson <dme@dme.org>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH 3/4 v2] test: Add test for Original Message hiding at
\r
38 Date: Wed, 25 Jan 2012 15:45:27 +0000
\r
39 Message-Id: <1327506328-22126-4-git-send-email-dme@dme.org>
\r
40 X-Mailer: git-send-email 1.7.8.3
\r
41 In-Reply-To: <1327506328-22126-1-git-send-email-dme@dme.org>
\r
42 References: <1327503908-17226-1-git-send-email-dme@dme.org>
\r
43 <1327506328-22126-1-git-send-email-dme@dme.org>
\r
45 ALoCoQm5GIToB4WflBquurE/ckgGGSGWV4qbycJx5/fnLUq/2UpBw1aIUZNpSlXUP8TTtXGehCLK
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Wed, 25 Jan 2012 15:45:37 -0000
\r
61 test/emacs-original-message-hiding.el | 15 +++++++++++++++
\r
62 test/emacs-original-message-hiding.sh | 20 ++++++++++++++++++++
\r
63 test/notmuch-test | 1 +
\r
64 3 files changed, 36 insertions(+), 0 deletions(-)
\r
65 create mode 100644 test/emacs-original-message-hiding.el
\r
66 create mode 100755 test/emacs-original-message-hiding.sh
\r
68 diff --git a/test/emacs-original-message-hiding.el b/test/emacs-original-message-hiding.el
\r
69 new file mode 100644
\r
70 index 0000000..bbacbeb
\r
72 +++ b/test/emacs-original-message-hiding.el
\r
74 +(defun notmuch-test-original-message-hiding ()
\r
75 + (let ((notmuch-show-insert-text/plain-hook '(notmuch-wash-excerpt-citations))
\r
77 +Sender <sender@example.com> (2010-01-05) (inbox)
\r
78 +Subject: hiding an Original Message
\r
79 +To: mailinglist@notmuchmail.org
\r
80 +Date: Tue, 05 Jan 2010 15:43:56 -0000
\r
82 +[ 2-line hidden original message. Click/Enter to show. ]
\r
86 + (notmuch-show "id:\"test_message@test.org\"")
\r
87 + (setq output (visible-buffer-string))
\r
88 + (notmuch-test-expect-equal output expected)))
\r
89 diff --git a/test/emacs-original-message-hiding.sh b/test/emacs-original-message-hiding.sh
\r
90 new file mode 100755
\r
91 index 0000000..01cf98d
\r
93 +++ b/test/emacs-original-message-hiding.sh
\r
95 +#!/usr/bin/env bash
\r
97 +test_description="emacs Original Message hiding"
\r
100 +test_begin_subtest "Hiding an Original Message region at point-min"
\r
102 + '[id]="test_message@test.org"' \
\r
103 + '[from]="Sender <sender@example.com>"' \
\r
104 + '[to]=mailinglist@notmuchmail.org' \
\r
105 + '[subject]="hiding an Original Message"' \
\r
106 + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
107 + '[body]="-----Original Message-----
\r
110 +test_subtest_known_broken
\r
111 +test_emacs_expect_t \
\r
112 + '(load "emacs-original-message-hiding.el") (notmuch-test-original-message-hiding)'
\r
115 diff --git a/test/notmuch-test b/test/notmuch-test
\r
116 index 3f1740c..af132fc 100755
\r
117 --- a/test/notmuch-test
\r
118 +++ b/test/notmuch-test
\r
119 @@ -54,6 +54,7 @@ TESTS="
\r
121 emacs-test-functions.sh
\r
122 emacs-address-cleaning.sh
\r
123 + emacs-original-message-hiding.sh
\r
125 TESTS=${NOTMUCH_TESTS:=$TESTS}
\r