[PATCH 1/2] test: add test for hiding Original Message region at beginning of a message
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Mon, 30 Jan 2012 12:24:45 +0000 (16:24 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:43:39 +0000 (09:43 -0800)
47/47befee507eed40ea23a9833a9c9941fa59267 [new file with mode: 0644]

diff --git a/47/47befee507eed40ea23a9833a9c9941fa59267 b/47/47befee507eed40ea23a9833a9c9941fa59267
new file mode 100644 (file)
index 0000000..1a14cff
--- /dev/null
@@ -0,0 +1,121 @@
+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 77574431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 04:26:04 -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 8sL4fAVm7Mto for <notmuch@notmuchmail.org>;\r
+       Mon, 30 Jan 2012 04:26:03 -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 9C985429E34\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 04:26:03 -0800 (PST)\r
+Received: by bke11 with SMTP id 11so1334330bke.26\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 04:26:02 -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=g3uoJBpABW+80LLVhwItKYFpHeo685AOtGejs2CtLj8=;\r
+       b=cXyIyvMSQqFLksh/YyRgQj/L1XvA2NT60Q4P7X1vwfhCgM7hZj7YGRir/JJjZV90dR\r
+       G3QuZqdWsjCIYQO2wgHBrLvDv6Hi8967LXM+xdtkyl8iE+msY9P/1wJkEqnHxToWkEfv\r
+       dwb9tSde+1ye/88b01SY33QVICmYbHpjHK4O8=\r
+Received: by 10.204.130.150 with SMTP id t22mr8283220bks.1.1327926362292;\r
+       Mon, 30 Jan 2012 04:26:02 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id x20sm22010022bka.9.2012.01.30.04.26.01\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 30 Jan 2012 04:26:01 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] test: add test for hiding Original Message region at\r
+       beginning of a message\r
+Date: Mon, 30 Jan 2012 16:24:45 +0400\r
+Message-Id: <1327926286-16680-2-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.8.3\r
+In-Reply-To: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1327926286-16680-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: Mon, 30 Jan 2012 12:26:04 -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 3f1740c..c814be9 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-show\r
+ "\r
+ TESTS=${NOTMUCH_TESTS:=$TESTS}\r
\r
+-- \r
+1.7.8.3\r
+\r