[PATCH] emacs: implement notmuch-search-color-line with dolist.
[notmuch-archives.git] / 87 / ce5f890081fba0a625e743d167ca4f577359e4
1 Return-Path: <jrollins@finestructure.net>\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 34FA3429E26\r
6         for <notmuch@notmuchmail.org>; Sat,  8 Oct 2011 20:21:32 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 zrmw0xdKTC5A for <notmuch@notmuchmail.org>;\r
16         Sat,  8 Oct 2011 20:21:31 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id A5EBA431FB6\r
20         for <notmuch@notmuchmail.org>; Sat,  8 Oct 2011 20:21:31 -0700 (PDT)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id 1C7BB32806D\r
23         for <notmuch@notmuchmail.org>; Sat,  8 Oct 2011 20:21:29 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (washington.ligo-wa.caltech.edu\r
26         [198.129.208.205]) (Authenticated sender: jrollins)\r
27         by fire-doxen-submit (Postfix) with ESMTP id 1A51032807F\r
28         for <notmuch@notmuchmail.org>; Sat,  8 Oct 2011 20:21:27 -0700 (PDT)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id 64032B5F; Sat,  8 Oct 2011 20:21:26 -0700 (PDT)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: [PATCH] test: add two emacs tests for show mode refresh\r
34 Date: Sat,  8 Oct 2011 20:21:26 -0700\r
35 Message-Id: <1318130486-23529-1-git-send-email-jrollins@finestructure.net>\r
36 X-Mailer: git-send-email 1.7.6.3\r
37 In-Reply-To: <id:1306627784-3401-1-git-send-email-jrollins@finestructure.net>\r
38 References: <id:1306627784-3401-1-git-send-email-jrollins@finestructure.net>\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Sun, 09 Oct 2011 03:21:32 -0000\r
52 \r
53 The first test tests that the notmuch-show-refresh-view function\r
54 produces the exact same output for an unmodified show buffer.  This\r
55 test should pass since the relevant functionality has already been\r
56 applied.\r
57 \r
58 The second test tests show refresh for a show buffer that has been\r
59 modified by navigation and message visibility toggling.  Ideally\r
60 refresh-view should preserve this state of the notmuch-show buffer.\r
61 Unfortunately it currently does not, so this test is know to be broken\r
62 and is marked as such.\r
63 ---\r
64  test/emacs |   18 ++++++++++++++++++\r
65  1 files changed, 18 insertions(+), 0 deletions(-)\r
66 \r
67 diff --git a/test/emacs b/test/emacs\r
68 index c88e5ac..6d9cfd9 100755\r
69 --- a/test/emacs\r
70 +++ b/test/emacs\r
71 @@ -367,4 +367,22 @@ test_emacs "(notmuch-show \"id:$id\") \\r
72              (test-visible-output \"EXPECTED\")"\r
73  test_expect_equal_file OUTPUT EXPECTED\r
74  \r
75 +test_begin_subtest "Refresh show buffer"\r
76 +test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")\r
77 +           (test-visible-output "EXPECTED")\r
78 +           (notmuch-show-refresh-view)\r
79 +           (test-visible-output)'\r
80 +test_expect_equal_file OUTPUT EXPECTED\r
81 +\r
82 +test_begin_subtest "Refresh modified show buffer"\r
83 +test_subtest_known_broken\r
84 +test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")\r
85 +            (notmuch-show-toggle-message)\r
86 +            (notmuch-show-next-message)\r
87 +            (notmuch-show-toggle-message)\r
88 +           (test-visible-output "EXPECTED")\r
89 +           (notmuch-show-refresh-view)\r
90 +           (test-visible-output)'\r
91 +test_expect_equal_file OUTPUT EXPECTED\r
92 +\r
93  test_done\r
94 -- \r
95 1.7.6.3\r
96 \r