Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 0e / 0627a4bca9f282aa9bca7512e2ee61ec1c970c
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 B70C4429E2E\r
6         for <notmuch@notmuchmail.org>; Wed, 21 Dec 2011 10:19:13 -0800 (PST)\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 QaNb0pubgQEJ for <notmuch@notmuchmail.org>;\r
17         Wed, 21 Dec 2011 10:19:13 -0800 (PST)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  D3E5B431FD0    for <notmuch@notmuchmail.org>; Wed, 21 Dec 2011 10:19:12 -0800\r
22  (PST)\r
23 Received: by mail-ww0-f45.google.com with SMTP id ds13so11998557wgb.2\r
24         for <notmuch@notmuchmail.org>; Wed, 21 Dec 2011 10:19:12 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=nFfJ1ZGMCBkByzPRDuYANmlKoPCkhn4CdmlBD3qhQQs=;\r
28         b=mU+1Zqpz+Y29AXX5+r8Z+q2AWB+xh67KVKz/4LQ1kik1iAjf9UFhXy/gD9wTfW9SVp\r
29         ffkqSdv51oiiHAtJKzXaMnYaNRw1K31LpbBO6naQaHtKw3bxv432hmKOal27EX52czAb\r
30         NPPVHJ4e/2sKKhgjwE8LNCEBBtAmDwABKEB68=\r
31 Received: by 10.227.208.134 with SMTP id gc6mr7315998wbb.3.1324491552438;\r
32         Wed, 21 Dec 2011 10:19:12 -0800 (PST)\r
33 Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id\r
34         en20sm15465622wid.10.2011.12.21.10.19.11\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Wed, 21 Dec 2011 10:19:12 -0800 (PST)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 2/2] test: add test for `notmuch-hello-refresh-hook'\r
40 Date: Wed, 21 Dec 2011 22:18:26 +0400\r
41 Message-Id: <1324491506-1134-2-git-send-email-dmitry.kurochkin@gmail.com>\r
42 X-Mailer: git-send-email 1.7.7.3\r
43 In-Reply-To: <1324491506-1134-1-git-send-email-dmitry.kurochkin@gmail.com>\r
44 References: <1324491506-1134-1-git-send-email-dmitry.kurochkin@gmail.com>\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Wed, 21 Dec 2011 18:19:14 -0000\r
58 \r
59 Test that `notmuch-hello-refresh-hook' is called once when\r
60 `notmuch-hello' is called and twice when calling\r
61 `notmuch-hello-update' after that.\r
62 \r
63 The tests are very similar to tests for `notmuch-hello-mode-hook'.\r
64 ---\r
65  test/emacs       |   19 +++++++++++++++++++\r
66  test/test-lib.el |    1 +\r
67  2 files changed, 20 insertions(+), 0 deletions(-)\r
68 \r
69 diff --git a/test/emacs b/test/emacs\r
70 index dffad0f..ca82445 100755\r
71 --- a/test/emacs\r
72 +++ b/test/emacs\r
73 @@ -495,4 +495,23 @@ counter=$(test_emacs \\r
74  )\r
75  test_expect_equal "$counter" 1\r
76  \r
77 +test_begin_subtest "notmuch-hello-refresh hook is called"\r
78 +counter=$(test_emacs \\r
79 +    '(let ((notmuch-hello-refresh-hook-counter 0))\r
80 +       (kill-buffer "*notmuch-hello*")\r
81 +       (notmuch-hello)\r
82 +       notmuch-hello-refresh-hook-counter)'\r
83 +)\r
84 +test_expect_equal "$counter" 1\r
85 +\r
86 +test_begin_subtest "notmuch-hello-refresh hook is called on updates"\r
87 +counter=$(test_emacs \\r
88 +    '(let ((notmuch-hello-refresh-hook-counter 0))\r
89 +       (kill-buffer "*notmuch-hello*")\r
90 +       (notmuch-hello)\r
91 +       (notmuch-hello-update)\r
92 +       notmuch-hello-refresh-hook-counter)'\r
93 +)\r
94 +test_expect_equal "$counter" 2\r
95 +\r
96  test_done\r
97 diff --git a/test/test-lib.el b/test/test-lib.el\r
98 index 83b8a65..3b817c3 100644\r
99 --- a/test/test-lib.el\r
100 +++ b/test/test-lib.el\r
101 @@ -75,3 +75,4 @@ nothing."\r
102    (add-hook hook (apply-partially 'hook-counter hook)))\r
103  \r
104  (add-hook-counter 'notmuch-hello-mode-hook)\r
105 +(add-hook-counter 'notmuch-hello-refresh-hook)\r
106 -- \r
107 1.7.7.3\r
108 \r