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