[PATCH v2 1/2] test: add test for hiding Original Message region at beginning of...
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sat, 4 Feb 2012 07:36:36 +0000 (11:36 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:04 +0000 (09:44 -0800)
1c/1e91858cc88bb54160dd7d39a93aa125a43596 [new file with mode: 0644]

diff --git a/1c/1e91858cc88bb54160dd7d39a93aa125a43596 b/1c/1e91858cc88bb54160dd7d39a93aa125a43596
new file mode 100644 (file)
index 0000000..c19cc97
--- /dev/null
@@ -0,0 +1,122 @@
+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 A8D71431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 23:38:00 -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 Xp-l5Rm26sme for <notmuch@notmuchmail.org>;\r
+       Fri,  3 Feb 2012 23:38:00 -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 D524A431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 23:37:59 -0800 (PST)\r
+Received: by mail-bk0-f53.google.com with SMTP id 11so4129597bke.26\r
+       for <notmuch@notmuchmail.org>; Fri, 03 Feb 2012 23:37:59 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=gODIF+BxRLE1vcG3B9uNoSrXGtTBtRDbeGOgZKkJgRk=;\r
+       b=xRcw09LzQ1X/vmrrDGun4tNi8qu1WvMxyXytu6te2yV7ORESBdhZI8u7rwCpAu9ZhC\r
+       rDN8mvOiIYqFptdpwZ6P/Gc9bs03IcdtkE+/OUfW7IPEVkmdE5LkiMkRpv3e34TC4r83\r
+       Esc/0J/dhKo3gr9vrqEtqYDllsN2VY1lBh4yE=\r
+Received: by 10.204.154.92 with SMTP id n28mr4966318bkw.30.1328341079548;\r
+       Fri, 03 Feb 2012 23:37:59 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id jd17sm23891312bkb.4.2012.02.03.23.37.58\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 03 Feb 2012 23:37:59 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 1/2] test: add test for hiding Original Message region at\r
+       beginning of a message\r
+Date: Sat,  4 Feb 2012 11:36:36 +0400\r
+Message-Id: <1328340997-29004-2-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.9\r
+In-Reply-To: <1328340997-29004-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+       <1328340997-29004-1-git-send-email-dmitry.kurochkin@gmail.com>\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: Sat, 04 Feb 2012 07:38:00 -0000\r
+\r
+The test is currently broken and will be fixed by a subsequent patch.\r
+\r
+The patch adds a new file for tests of Emacs notmuch-show view.\r
+\r
+Based on patch by David Edmondson [1].\r
+\r
+[1] id:"1327562380-12894-4-git-send-email-dme@dme.org"\r
+---\r
+ test/emacs-show   |   28 ++++++++++++++++++++++++++++\r
+ test/notmuch-test |    1 +\r
+ 2 files changed, 29 insertions(+), 0 deletions(-)\r
+ create mode 100755 test/emacs-show\r
+\r
+diff --git a/test/emacs-show b/test/emacs-show\r
+new file mode 100755\r
+index 0000000..9800575\r
+--- /dev/null\r
++++ b/test/emacs-show\r
+@@ -0,0 +1,28 @@\r
++#!/usr/bin/env bash\r
++\r
++test_description="Testing emacs notmuch-show view"\r
++. test-lib.sh\r
++\r
++test_begin_subtest "Hiding Original Message region at beginning of a message"\r
++test_subtest_known_broken\r
++message_id='OriginalMessageHiding.1@notmuchmail.org'\r
++add_message \\r
++    [id]="$message_id" \\r
++    '[subject]="Hiding Original Message region at beginning of a message"' \\r
++    '[body]="-----Original Message-----\r
++Text here."'\r
++\r
++cat <<EOF >EXPECTED\r
++Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox)\r
++Subject: Hiding Original Message region at beginning of a message\r
++To: Notmuch Test Suite <test_suite@notmuchmail.org>\r
++Date: Fri, 05 Jan 2001 15:43:57 +0000\r
++\r
++[ 2-line hidden original message. Click/Enter to show. ]\r
++EOF\r
++\r
++test_emacs "(notmuch-show \"id:$message_id\")\r
++          (test-visible-output)"\r
++test_expect_equal_file OUTPUT EXPECTED\r
++\r
++test_done\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index ced6b47..e14d34e 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -54,6 +54,7 @@ TESTS="\r
+   argument-parsing\r
+   emacs-test-functions\r
+   emacs-address-cleaning\r
++  emacs-show\r
+ "\r
+ TESTS=${NOTMUCH_TESTS:=$TESTS}\r
\r
+-- \r
+1.7.9\r
+\r