[PATCH 1/2] test: add broken test for long names in Emacs notmuch-hello view
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Fri, 9 Mar 2012 07:34:52 +0000 (11:34 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:20 +0000 (09:45 -0800)
08/752f1aa211f5fdf484925a2d9038b10217fb9e [new file with mode: 0644]

diff --git a/08/752f1aa211f5fdf484925a2d9038b10217fb9e b/08/752f1aa211f5fdf484925a2d9038b10217fb9e
new file mode 100644 (file)
index 0000000..7f8acd8
--- /dev/null
@@ -0,0 +1,113 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id F0830431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  8 Mar 2012 23:36:26 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ePkhbIK7fJKL for <notmuch@notmuchmail.org>;\r
+       Thu,  8 Mar 2012 23:36:26 -0800 (PST)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 532CD431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  8 Mar 2012 23:36:26 -0800 (PST)\r
+Received: by bkwj4 with SMTP id j4so1103545bkw.26\r
+       for <notmuch@notmuchmail.org>; Thu, 08 Mar 2012 23:36:24 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:subject:date:message-id:x-mailer;\r
+       bh=vgSYHIqECBQ2dN1nI0T4fsGYipv5L5QnF6yoEn2JdWA=;\r
+       b=Xfxv/5xy6WuyDJcSHiybUn4sN/g1iuScr4rCYkidTc6t39A93+s78GXkwVNqVD0Xjm\r
+       APmmvtR4iT0trBo8Q1XaFqlMFj24NUNaf3zY15EbIRBV0w+yMGIDwu5jm3zNbI6g5dAz\r
+       sLHPJ76/DXw3Mpx8FIX/M6cQZqjVF3Ro78zTpoHZLupxWNJJIfc9TV+jFnKtenDYgAz/\r
+       ctZpwrgl/vxcCrot+bkQnWThU1aRUZ5hmTSvDGcXbfgDJ6J+/5In9tR8y57PaYTH7c6J\r
+       OgVMk1l8TLZqGnVNBENpVu+WL3ZrclpstTPp8raTsmSfHoCROQXjY2iZmdki5fD+e40Q\r
+       eqrA==\r
+Received: by 10.204.13.72 with SMTP id b8mr458267bka.105.1331278584806;\r
+       Thu, 08 Mar 2012 23:36:24 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id d5sm7587504bkb.3.2012.03.08.23.36.23\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Thu, 08 Mar 2012 23:36:23 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] test: add broken test for long names in Emacs\r
+       notmuch-hello view\r
+Date: Fri,  9 Mar 2012 11:34:52 +0400\r
+Message-Id: <1331278493-16996-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 09 Mar 2012 07:36:27 -0000\r
+\r
+Currently, the column alignment in Emacs notmuch-hello is broken for\r
+tags/queries with long names.\r
+---\r
+ test/emacs-hello                                   |    9 +++++++++\r
+ .../emacs.expected-output/notmuch-hello-long-names |   18 ++++++++++++++++++\r
+ 2 files changed, 27 insertions(+), 0 deletions(-)\r
+ create mode 100644 test/emacs.expected-output/notmuch-hello-long-names\r
+\r
+diff --git a/test/emacs-hello b/test/emacs-hello\r
+index b235e3a..9e5d045 100755\r
+--- a/test/emacs-hello\r
++++ b/test/emacs-hello\r
+@@ -44,4 +44,13 @@ test_emacs "(let ((notmuch-hello-sections\r
+              (test-output))"\r
+ test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts\r
\r
++test_begin_subtest "Column alignment for tag/queries with long names"\r
++test_subtest_known_broken\r
++tag=a-very-long-tag # length carefully calculated for 80 characters window width\r
++notmuch tag +$tag '*'\r
++test_emacs '(notmuch-hello)\r
++            (test-output)'\r
++notmuch tag -$tag '*'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-long-names\r
++\r
+ test_done\r
+diff --git a/test/emacs.expected-output/notmuch-hello-long-names b/test/emacs.expected-output/notmuch-hello-long-names\r
+new file mode 100644\r
+index 0000000..be6d2c5\r
+--- /dev/null\r
++++ b/test/emacs.expected-output/notmuch-hello-long-names\r
+@@ -0,0 +1,18 @@\r
++   Welcome to notmuch. You have 52 messages.\r
++\r
++Saved searches: [edit]\r
++\r
++        52 inbox           52 unread    \r
++\r
++Search:                                                                     .\r
++\r
++All tags: [hide]\r
++\r
++        52 a-very-long-tag       52 inbox                 52 unread \r
++         4 attachment             7 signed          \r
++\r
++       Type a search query and hit RET to view matching threads.\r
++              Edit saved searches with the `edit' button.\r
++  Hit RET or click on a saved search or tag name to view matching threads.\r
++      `=' to refresh this screen. `s' to search messages. `q' to quit.\r
++                          Customize this page.\r
+-- \r
+1.7.9.1\r
+\r