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 EA6F7429E29 for ; Fri, 16 Dec 2011 16:35:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.8 X-Spam-Level: X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 WqLoKcJafd2l for ; Fri, 16 Dec 2011 16:35:37 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 1D611431FD0 for ; Fri, 16 Dec 2011 16:35:37 -0800 (PST) Received: by mail-ee0-f53.google.com with SMTP id d41so4348509eek.26 for ; Fri, 16 Dec 2011 16:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=bPDhdyWl8hBT4j13ih6j7F6nBSRCRainAmIJZrAm/6w=; b=U71r2Th6rR97NlGlndiMc5aSGZB7OiUrinbmUb6EjB86gg0Oc0sUNYSfuEeoWtf5FP GXeLmHlwAyINYjkQVJT0eCzqGoTUv4IRIpIeWV4XpoIbJ01ETkilTpoLl5uXeVohFtzd mlehBjMxWXJbD3nDDcMezXnLy+G3ug23qKnzs= Received: by 10.213.110.2 with SMTP id l2mr1847520ebp.143.1324082136655; Fri, 16 Dec 2011 16:35:36 -0800 (PST) Received: from localhost (dslb-088-069-153-158.pools.arcor-ip.net. [88.69.153.158]) by mx.google.com with ESMTPS id j20sm4061735eej.8.2011.12.16.16.35.35 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Dec 2011 16:35:35 -0800 (PST) From: Daniel Schoepe To: notmuch@notmuchmail.org Subject: [PATCH v4 2/2] emacs: Test for thread-outlining Date: Sat, 17 Dec 2011 01:35:26 +0100 Message-Id: <1324082126-25404-3-git-send-email-daniel@schoepe.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1324082126-25404-1-git-send-email-daniel@schoepe.org> References: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com> <1324082126-25404-1-git-send-email-daniel@schoepe.org> Cc: Daniel Schoepe 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: Sat, 17 Dec 2011 00:35:38 -0000 From: Daniel Schoepe --- test/emacs | 7 +++++++ .../notmuch-show-thread-outline | 7 +++++++ 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline diff --git a/test/emacs b/test/emacs index 6e922de..f986d3c 100755 --- a/test/emacs +++ b/test/emacs @@ -71,6 +71,13 @@ test_emacs "(let ((notmuch-indent-messages-width 4)) (test-output))" test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-with-fourfold-indentation +test_begin_subtest "Thread outlining in notmuch-show" +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu) +test_emacs "(notmuch-show \"$maildir_storage_thread\") (notmuch-show-outline) + (switch-to-buffer notmuch-show-outline-buffer) + (test-output)" +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-outline + test_begin_subtest "notmuch-show for message with invalid From" add_message "[subject]=\"message-with-invalid-from\"" \ "[from]=\"\\\"Invalid \\\" From\\\" \"" diff --git a/test/emacs.expected-output/notmuch-show-thread-outline b/test/emacs.expected-output/notmuch-show-thread-outline new file mode 100644 index 0000000..b210ba7 --- /dev/null +++ b/test/emacs.expected-output/notmuch-show-thread-outline @@ -0,0 +1,7 @@ +Lars Kellogg-Stedman - 2009-11-17 + Mikhail Gusarov - 2009-11-17 + Lars Kellogg-Stedman - 2009-11-17 + "Mikhail Gusarov" - 2009-11-17 + "Keith Packard" - 2009-11-17 + Lars Kellogg-Stedman - 2009-11-18 + "Carl Worth" - 2009-11-18 -- 1.7.7.3