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 3DB61429E27 for ; Mon, 26 Aug 2013 14:09:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=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 PX2rtY3H77I6 for ; Mon, 26 Aug 2013 14:09:22 -0700 (PDT) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 131E5431FD7 for ; Mon, 26 Aug 2013 14:09:19 -0700 (PDT) Received: by mail-wi0-f177.google.com with SMTP id cb5so2231601wib.16 for ; Mon, 26 Aug 2013 14:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0mxb3S1i42hbklHjvJuBCO0wexFbVz+r+pO46q0N79o=; b=c3S2pSxANCj6oAWoH6OaX9S5CCjPLkPqd2kilPgtWFSf7VzyBpaWBmE7yfN3uohHad p7cbG5wahLoL92tR5SrGMnxqQY3m/kBADWV33yWfHRE2BZK19jW22T9sOl0W02TDEdci 4Uf5mOMZ2yV9hwtMVFbQ1HjpNg9dxv1oOOOxZeLVPjfVt5J9ToXcZN9EPVjmx+wOI1Sd H3kOkp1h27ijdWRRulLA2zSRGItnd0e3nsUDgt5T5nJHU318tRhybMdCFPGQjN0oHoE6 Q2WO1eioNuVzf9qdtgWQThsvn/Ax/j4OWGh3BJiOAR6of77mT9Z6HUywByidorn7Jm6V mUrA== X-Received: by 10.194.8.9 with SMTP id n9mr11598510wja.11.1377551357674; Mon, 26 Aug 2013 14:09:17 -0700 (PDT) Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) by mx.google.com with ESMTPSA id z2sm21384383wiv.11.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 26 Aug 2013 14:09:17 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [Patch v2 3/3] contrib: pick: test: refresh view Date: Mon, 26 Aug 2013 22:09:05 +0100 Message-Id: <1377551345-27147-4-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1377551345-27147-1-git-send-email-markwalters1009@gmail.com> References: <1377551345-27147-1-git-send-email-markwalters1009@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, 26 Aug 2013 21:09:28 -0000 A recent proposed patch was buggy when refreshing the view. Add a test for refresh so that this does not reoccur. --- contrib/notmuch-pick/test/emacs-pick | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/contrib/notmuch-pick/test/emacs-pick b/contrib/notmuch-pick/test/emacs-pick index eed5f02..37f974a 100755 --- a/contrib/notmuch-pick/test/emacs-pick +++ b/contrib/notmuch-pick/test/emacs-pick @@ -23,6 +23,17 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'") (delete-other-windows)' test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox +test_begin_subtest "Refreshed notmuch-pick view in emacs" +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'") + (require (quote notmuch-pick)) + (notmuch-pick "tag:inbox") + (notmuch-test-wait) + (notmuch-pick-refresh-view) + (notmuch-test-wait) + (test-output) + (delete-other-windows)' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox + test_begin_subtest "Navigation of notmuch-hello to search results" test_emacs '(notmuch-hello) (goto-char (point-min)) -- 1.7.9.1