From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4DA79429E31 for ; Fri, 16 Dec 2011 16:32:20 -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 tw7vFaPAj0WL for ; Fri, 16 Dec 2011 16:32:19 -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 71BE8429E30 for ; Fri, 16 Dec 2011 16:32:19 -0800 (PST) Received: by mail-ee0-f53.google.com with SMTP id d41so4346943eek.26 for ; Fri, 16 Dec 2011 16:32:19 -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=cZ7Rta6hUZR94WAAi5uKUqTxap5iloQN1hxiZHk29BE=; b=bOH1kJCIc6y3+7brB5hyZKtX+2We5JFNLIuaz/Jl5BealVBtEO4/gMJ2i5HW/hsxvH 2aesdws89fjz5bbW7JG0ctXU+onRfiLIAogFMoqpQefa82S4Qzx4Nw/yFkUaYtcN3tVn 0UZ8AkdZ7ZOOq0JIZWZnq3T5OJ/VYVXPUoQe8= Received: by 10.213.25.205 with SMTP id a13mr734037ebc.8.1324081938999; Fri, 16 Dec 2011 16:32:18 -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 j20sm4031860eej.8.2011.12.16.16.32.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Dec 2011 16:32:18 -0800 (PST) From: Daniel Schoepe To: notmuch@notmuchmail.org Subject: [PATCH v3 2/2] emacs: Test for thread-outlining Date: Sat, 17 Dec 2011 01:32:09 +0100 Message-Id: <1324081929-23025-3-git-send-email-daniel@schoepe.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1324081929-23025-1-git-send-email-daniel@schoepe.org> References: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com> <1324081929-23025-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:32:20 -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..e706909 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