[PATCH 3/4 v3] test: Add test for Original Message hiding at point-min.
authorDavid Edmondson <dme@dme.org>
Thu, 26 Jan 2012 07:19:39 +0000 (07:19 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:43:19 +0000 (09:43 -0800)
c2/8a25df90794c11d97a9eaea58cfa991342384b [new file with mode: 0644]

diff --git a/c2/8a25df90794c11d97a9eaea58cfa991342384b b/c2/8a25df90794c11d97a9eaea58cfa991342384b
new file mode 100644 (file)
index 0000000..d381817
--- /dev/null
@@ -0,0 +1,120 @@
+Return-Path: <dme@dme.org>\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 88037431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 23:19:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 T3mWhpCtkOK1 for <notmuch@notmuchmail.org>;\r
+       Wed, 25 Jan 2012 23:19:48 -0800 (PST)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+       [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5A867431FBD\r
+       for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 23:19:47 -0800 (PST)\r
+Received: by wibhi8 with SMTP id hi8so181674wib.26\r
+       for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 23:19:45 -0800 (PST)\r
+Received: by 10.180.80.68 with SMTP id p4mr2009307wix.21.1327562385620;\r
+       Wed, 25 Jan 2012 23:19:45 -0800 (PST)\r
+Received: from hotblack-desiato.hh.sledj.net\r
+       (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
+       by mx.google.com with ESMTPS id q7sm3814368wix.5.2012.01.25.23.19.42\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 25 Jan 2012 23:19:43 -0800 (PST)\r
+Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
+       id 888499FF26; Thu, 26 Jan 2012 07:19:41 +0000 (GMT)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/4 v3] test: Add test for Original Message hiding at\r
+       point-min.\r
+Date: Thu, 26 Jan 2012 07:19:39 +0000\r
+Message-Id: <1327562380-12894-4-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 1.7.8.3\r
+In-Reply-To: <1327562380-12894-1-git-send-email-dme@dme.org>\r
+References: <1327503908-17226-1-git-send-email-dme@dme.org>\r
+       <1327562380-12894-1-git-send-email-dme@dme.org>\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: Thu, 26 Jan 2012 07:19:49 -0000\r
+\r
+---\r
+ test/emacs-message-hiding.sh |   37 +++++++++++++++++++++++++++++++++++++\r
+ test/notmuch-test            |    1 +\r
+ 2 files changed, 38 insertions(+), 0 deletions(-)\r
+ create mode 100755 test/emacs-message-hiding.sh\r
+\r
+diff --git a/test/emacs-message-hiding.sh b/test/emacs-message-hiding.sh\r
+new file mode 100755\r
+index 0000000..70bc66d\r
+--- /dev/null\r
++++ b/test/emacs-message-hiding.sh\r
+@@ -0,0 +1,37 @@\r
++#!/usr/bin/env bash\r
++\r
++test_description="emacs Original Message hiding"\r
++. test-lib.sh\r
++\r
++test_begin_subtest "Hiding an Original Message region at point-min"\r
++add_message \\r
++    '[id]="OriginalMessageHiding.1@notmuchmail.org"' \\r
++    '[from]="Sender <sender@example.com>"' \\r
++    '[to]=mailinglist@notmuchmail.org' \\r
++    '[subject]="hiding an Original Message"' \\r
++    '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
++    '[body]="-----Original Message-----\r
++Text here.\r
++"'\r
++\r
++cat > EXPECTED <<EOF\r
++Sender <sender@example.com> (2010-01-05) (inbox)\r
++Subject: hiding an Original Message\r
++To: mailinglist@notmuchmail.org\r
++Date: Tue, 05 Jan 2010 15:43:56 -0000\r
++\r
++[ 2-line hidden original message. Click/Enter to show. ]\r
++\r
++EOF\r
++\r
++test_emacs '\r
++(notmuch-test-run\r
++ (let ((notmuch-show-insert-text/plain-hook (quote notmuch-wash-excerpt-citations)))\r
++   (notmuch-show "id:\"OriginalMessageHiding.1@notmuchmail.org\"")\r
++   (visible-buffer-string)))\r
++'\r
++\r
++test_subtest_known_broken\r
++test_expect_equal_file EXPECTED OUTPUT\r
++\r
++test_done\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index 3f1740c..6631f87 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -54,6 +54,7 @@ TESTS="\r
+   argument-parsing\r
+   emacs-test-functions.sh\r
+   emacs-address-cleaning.sh\r
++  emacs-message-hiding.sh\r
+ "\r
+ TESTS=${NOTMUCH_TESTS:=$TESTS}\r
\r
+-- \r
+1.7.8.3\r
+\r