From 94a4714d8eb4ab560e70a79083a6615bdb28f16b Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Mon, 30 Jan 2012 16:24:45 +0400 Subject: [PATCH] [PATCH 1/2] test: add test for hiding Original Message region at beginning of a message --- 47/47befee507eed40ea23a9833a9c9941fa59267 | 121 ++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 47/47befee507eed40ea23a9833a9c9941fa59267 diff --git a/47/47befee507eed40ea23a9833a9c9941fa59267 b/47/47befee507eed40ea23a9833a9c9941fa59267 new file mode 100644 index 000000000..1a14cff81 --- /dev/null +++ b/47/47befee507eed40ea23a9833a9c9941fa59267 @@ -0,0 +1,121 @@ +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 77574431FBC + for ; Mon, 30 Jan 2012 04:26:04 -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 8sL4fAVm7Mto for ; + Mon, 30 Jan 2012 04:26:03 -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 9C985429E34 + for ; Mon, 30 Jan 2012 04:26:03 -0800 (PST) +Received: by bke11 with SMTP id 11so1334330bke.26 + for ; Mon, 30 Jan 2012 04:26:02 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; + h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; + bh=g3uoJBpABW+80LLVhwItKYFpHeo685AOtGejs2CtLj8=; + b=cXyIyvMSQqFLksh/YyRgQj/L1XvA2NT60Q4P7X1vwfhCgM7hZj7YGRir/JJjZV90dR + G3QuZqdWsjCIYQO2wgHBrLvDv6Hi8967LXM+xdtkyl8iE+msY9P/1wJkEqnHxToWkEfv + dwb9tSde+1ye/88b01SY33QVICmYbHpjHK4O8= +Received: by 10.204.130.150 with SMTP id t22mr8283220bks.1.1327926362292; + Mon, 30 Jan 2012 04:26:02 -0800 (PST) +Received: from localhost ([91.144.186.21]) + by mx.google.com with ESMTPS id x20sm22010022bka.9.2012.01.30.04.26.01 + (version=TLSv1/SSLv3 cipher=OTHER); + Mon, 30 Jan 2012 04:26:01 -0800 (PST) +From: Dmitry Kurochkin +To: notmuch@notmuchmail.org +Subject: [PATCH 1/2] test: add test for hiding Original Message region at + beginning of a message +Date: Mon, 30 Jan 2012 16:24:45 +0400 +Message-Id: <1327926286-16680-2-git-send-email-dmitry.kurochkin@gmail.com> +X-Mailer: git-send-email 1.7.8.3 +In-Reply-To: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com> +References: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com> +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: Mon, 30 Jan 2012 12:26:04 -0000 + +The test is currently broken and will be fixed by a subsequent patch. + +The patch adds a new file for tests of Emacs notmuch-show view. + +Based on patch by David Edmondson [1]. + +[1] id:"1327562380-12894-4-git-send-email-dme@dme.org" +--- + test/emacs-show | 28 ++++++++++++++++++++++++++++ + test/notmuch-test | 1 + + 2 files changed, 29 insertions(+), 0 deletions(-) + create mode 100755 test/emacs-show + +diff --git a/test/emacs-show b/test/emacs-show +new file mode 100755 +index 0000000..9800575 +--- /dev/null ++++ b/test/emacs-show +@@ -0,0 +1,28 @@ ++#!/usr/bin/env bash ++ ++test_description="Testing emacs notmuch-show view" ++. test-lib.sh ++ ++test_begin_subtest "Hiding Original Message region at beginning of a message" ++test_subtest_known_broken ++message_id='OriginalMessageHiding.1@notmuchmail.org' ++add_message \ ++ [id]="$message_id" \ ++ '[subject]="Hiding Original Message region at beginning of a message"' \ ++ '[body]="-----Original Message----- ++Text here."' ++ ++cat <EXPECTED ++Notmuch Test Suite (2001-01-05) (inbox) ++Subject: Hiding Original Message region at beginning of a message ++To: Notmuch Test Suite ++Date: Fri, 05 Jan 2001 15:43:57 +0000 ++ ++[ 2-line hidden original message. Click/Enter to show. ] ++EOF ++ ++test_emacs "(notmuch-show \"id:$message_id\") ++ (test-visible-output)" ++test_expect_equal_file OUTPUT EXPECTED ++ ++test_done +diff --git a/test/notmuch-test b/test/notmuch-test +index 3f1740c..c814be9 100755 +--- a/test/notmuch-test ++++ b/test/notmuch-test +@@ -54,6 +54,7 @@ TESTS=" + argument-parsing + emacs-test-functions.sh + emacs-address-cleaning.sh ++ emacs-show + " + TESTS=${NOTMUCH_TESTS:=$TESTS} + +-- +1.7.8.3 + -- 2.26.2