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 7BAC1429E2F for ; Fri, 8 Jul 2011 11:47:15 -0700 (PDT) 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 hkOdBCbMzvlo for ; Fri, 8 Jul 2011 11:47:14 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-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 4829D431FD0 for ; Fri, 8 Jul 2011 11:47:14 -0700 (PDT) Received: by bwg12 with SMTP id 12so2199993bwg.26 for ; Fri, 08 Jul 2011 11:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=vAUStobZ6/TCYB4i4Je6fA9BM214eVr1UqWW107h2jA=; b=nxfT5AcVC0D2vUl5EwNoNX4E95Gd1KdsunPejVThLiOygexq904e5pVs3GQMyzuLCx Vd4R2bhUJL8mgIjaf5qBIdBhGDSJN4cRjdJ854vwQUti27T6lQVH9ZyGRBjgEXVghNM5 ROMmtLhBCgFTFLgzNuH4zYqyZC/UImz0gjGB4= Received: by 10.204.7.85 with SMTP id c21mr492444bkc.260.1310150832476; Fri, 08 Jul 2011 11:47:12 -0700 (PDT) Received: from localhost (dslb-178-004-020-175.pools.arcor-ip.net [178.4.20.175]) by mx.google.com with ESMTPS id m6sm5418497fac.1.2011.07.08.11.47.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 11:47:11 -0700 (PDT) From: Daniel Schoepe To: notmuch@notmuchmail.org Subject: [PATCH v2 3/3] emacs: Test for thread-outlining Date: Fri, 8 Jul 2011 20:46:57 +0200 Message-Id: <1310150817-15213-4-git-send-email-daniel.schoepe@googlemail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1310150817-15213-1-git-send-email-daniel.schoepe@googlemail.com> References: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com> <1310150817-15213-1-git-send-email-daniel.schoepe@googlemail.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: Fri, 08 Jul 2011 18:47:15 -0000 --- 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 53f455a..1b14280 100755 --- a/test/emacs +++ b/test/emacs @@ -55,6 +55,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\") (test-output)" test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage +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.5.4