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 F0830431FB6
\r
6 for <notmuch@notmuchmail.org>; Thu, 8 Mar 2012 23:36:26 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 ePkhbIK7fJKL for <notmuch@notmuchmail.org>;
\r
17 Thu, 8 Mar 2012 23:36:26 -0800 (PST)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.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 532CD431FAE
\r
22 for <notmuch@notmuchmail.org>; Thu, 8 Mar 2012 23:36:26 -0800 (PST)
\r
23 Received: by bkwj4 with SMTP id j4so1103545bkw.26
\r
24 for <notmuch@notmuchmail.org>; Thu, 08 Mar 2012 23:36:24 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:subject:date:message-id:x-mailer;
\r
27 bh=vgSYHIqECBQ2dN1nI0T4fsGYipv5L5QnF6yoEn2JdWA=;
\r
28 b=Xfxv/5xy6WuyDJcSHiybUn4sN/g1iuScr4rCYkidTc6t39A93+s78GXkwVNqVD0Xjm
\r
29 APmmvtR4iT0trBo8Q1XaFqlMFj24NUNaf3zY15EbIRBV0w+yMGIDwu5jm3zNbI6g5dAz
\r
30 sLHPJ76/DXw3Mpx8FIX/M6cQZqjVF3Ro78zTpoHZLupxWNJJIfc9TV+jFnKtenDYgAz/
\r
31 ctZpwrgl/vxcCrot+bkQnWThU1aRUZ5hmTSvDGcXbfgDJ6J+/5In9tR8y57PaYTH7c6J
\r
32 OgVMk1l8TLZqGnVNBENpVu+WL3ZrclpstTPp8raTsmSfHoCROQXjY2iZmdki5fD+e40Q
\r
34 Received: by 10.204.13.72 with SMTP id b8mr458267bka.105.1331278584806;
\r
35 Thu, 08 Mar 2012 23:36:24 -0800 (PST)
\r
36 Received: from localhost ([91.144.186.21])
\r
37 by mx.google.com with ESMTPS id d5sm7587504bkb.3.2012.03.08.23.36.23
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Thu, 08 Mar 2012 23:36:23 -0800 (PST)
\r
40 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH 1/2] test: add broken test for long names in Emacs
\r
44 Date: Fri, 9 Mar 2012 11:34:52 +0400
\r
45 Message-Id: <1331278493-16996-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.9.1
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Fri, 09 Mar 2012 07:36:27 -0000
\r
61 Currently, the column alignment in Emacs notmuch-hello is broken for
\r
62 tags/queries with long names.
\r
64 test/emacs-hello | 9 +++++++++
\r
65 .../emacs.expected-output/notmuch-hello-long-names | 18 ++++++++++++++++++
\r
66 2 files changed, 27 insertions(+), 0 deletions(-)
\r
67 create mode 100644 test/emacs.expected-output/notmuch-hello-long-names
\r
69 diff --git a/test/emacs-hello b/test/emacs-hello
\r
70 index b235e3a..9e5d045 100755
\r
71 --- a/test/emacs-hello
\r
72 +++ b/test/emacs-hello
\r
73 @@ -44,4 +44,13 @@ test_emacs "(let ((notmuch-hello-sections
\r
75 test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts
\r
77 +test_begin_subtest "Column alignment for tag/queries with long names"
\r
78 +test_subtest_known_broken
\r
79 +tag=a-very-long-tag # length carefully calculated for 80 characters window width
\r
80 +notmuch tag +$tag '*'
\r
81 +test_emacs '(notmuch-hello)
\r
83 +notmuch tag -$tag '*'
\r
84 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-long-names
\r
87 diff --git a/test/emacs.expected-output/notmuch-hello-long-names b/test/emacs.expected-output/notmuch-hello-long-names
\r
88 new file mode 100644
\r
89 index 0000000..be6d2c5
\r
91 +++ b/test/emacs.expected-output/notmuch-hello-long-names
\r
93 + Welcome to notmuch. You have 52 messages.
\r
95 +Saved searches: [edit]
\r
97 + 52 inbox 52 unread
\r
103 + 52 a-very-long-tag 52 inbox 52 unread
\r
104 + 4 attachment 7 signed
\r
106 + Type a search query and hit RET to view matching threads.
\r
107 + Edit saved searches with the `edit' button.
\r
108 + Hit RET or click on a saved search or tag name to view matching threads.
\r
109 + `=' to refresh this screen. `s' to search messages. `q' to quit.
\r
110 + Customize this page.
\r