Re: [PATCH v2 1/2] test: add known broken tests for known broken RFC 2047 encodings
[notmuch-archives.git] / be / d90b8e6b8bde5f75a9255215a76cc88e992df1
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 2BCD5429E25\r
6         for <notmuch@notmuchmail.org>; Thu, 26 May 2011 14:38:16 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id rdPDTOjO7MrC for <notmuch@notmuchmail.org>;\r
17         Thu, 26 May 2011 14:38:15 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 788C7431FB6\r
22         for <notmuch@notmuchmail.org>; Thu, 26 May 2011 14:38:15 -0700 (PDT)\r
23 Received: by fxm8 with SMTP id 8so1052886fxm.26\r
24         for <notmuch@notmuchmail.org>; Thu, 26 May 2011 14:38:14 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
27         :in-reply-to:references;\r
28         bh=bptlxY+FsI41XGHJaNNRjeVbRcYA/LRxa6WTznlxCMM=;\r
29         b=T401SmhafD3fnfqnZWwnHpnkilsqgF5urS15aAYNKNyEWo9ahS5ssqDIqc2HnXkoLo\r
30         8seWVby7JE+Dj9x8mRDhK8dGwX8iEgtvZWpGV4Hlf91mAk2siThvIwSeKMq8P+a+99zW\r
31         Y+NLx/dgse1DGQS9tCAkiVBMk1tt0ba5Kj4+Y=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
34         b=DeoOgCZZ8Pppm0sFlsTVP+cAg/pVEJvNmIlll6HqDtkuoX3e8sHS5yQsZN4OanWpZz\r
35         YOUpAT1vuV7HKdXj3DeHJ8mGKAfR3zUMvl5Cquu2yVhVMTvfnyH5EZ83A2s46nlanEuY\r
36         +QIUgH7RabQ/FIgj5o8H5EJSTBK27+gfSiE/w=\r
37 Received: by 10.223.32.142 with SMTP id c14mr1468604fad.59.1306445894079;\r
38         Thu, 26 May 2011 14:38:14 -0700 (PDT)\r
39 Received: from localhost ([91.144.186.21])\r
40         by mx.google.com with ESMTPS id y7sm446472fak.7.2011.05.26.14.38.12\r
41         (version=TLSv1/SSLv3 cipher=OTHER);\r
42         Thu, 26 May 2011 14:38:12 -0700 (PDT)\r
43 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 1/2] test: add tests for hiding messages in notmuch-show view\r
46 Date: Fri, 27 May 2011 01:38:34 +0400\r
47 Message-Id: <1306445915-9474-1-git-send-email-dmitry.kurochkin@gmail.com>\r
48 X-Mailer: git-send-email 1.7.5.1\r
49 In-Reply-To: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50 References: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Thu, 26 May 2011 21:38:16 -0000\r
64 \r
65 ---\r
66  test/emacs                                         |   16 ++++++++++++++++\r
67  .../notmuch-show-thread-with-hidden-messages       |    3 +++\r
68  2 files changed, 19 insertions(+), 0 deletions(-)\r
69  create mode 100644 test/emacs.expected-output/notmuch-show-thread-with-hidden-messages\r
70 \r
71 diff --git a/test/emacs b/test/emacs\r
72 index ccf02af..7421650 100755\r
73 --- a/test/emacs\r
74 +++ b/test/emacs\r
75 @@ -152,4 +152,20 @@ output=$(test_emacs "(notmuch-show \"$maildir_storage_thread\")\r
76  expected=$(cat $EXPECTED/notmuch-show-thread-maildir-storage)\r
77  test_expect_equal "$output" "$expected"\r
78  \r
79 +test_begin_subtest "Hiding message in notmuch-show view"\r
80 +output=$(test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")\r
81 +                    (notmuch-show-toggle-message)\r
82 +                    (princ (visible-buffer-string))')\r
83 +expected=$(cat $EXPECTED/notmuch-show-thread-with-hidden-messages)\r
84 +test_expect_equal "$output" "$expected"\r
85 +\r
86 +test_begin_subtest "Hiding message with visible citation in notmuch-show view"\r
87 +output=$(test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")\r
88 +                    (search-forward "Click/Enter to show.")\r
89 +                    (button-activate (button-at (point)))\r
90 +                    (notmuch-show-toggle-message)\r
91 +                    (princ (visible-buffer-string))')\r
92 +expected=$(cat $EXPECTED/notmuch-show-thread-with-hidden-messages)\r
93 +test_expect_equal "$output" "$expected"\r
94 +\r
95  test_done\r
96 diff --git a/test/emacs.expected-output/notmuch-show-thread-with-hidden-messages b/test/emacs.expected-output/notmuch-show-thread-with-hidden-messages\r
97 new file mode 100644\r
98 index 0000000..5df6606\r
99 --- /dev/null\r
100 +++ b/test/emacs.expected-output/notmuch-show-thread-with-hidden-messages\r
101 @@ -0,0 +1,3 @@\r
102 +Jan Janak <jan@ryngle.com> (2009-11-17) (inbox unread)\r
103 + Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)\r
104 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)\r
105 -- \r
106 1.7.5.1\r
107 \r