From: Mark Walters Date: Mon, 2 Sep 2013 20:15:14 +0000 (+0100) Subject: [Patch v3 3/3] contrib: pick: test: refresh view X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1ed4cd21c945fffbe5b802ed054001d2d36e09e9;p=notmuch-archives.git [Patch v3 3/3] contrib: pick: test: refresh view --- diff --git a/bf/0271eea90d58293538cafcd6c879f8af6f0bc0 b/bf/0271eea90d58293538cafcd6c879f8af6f0bc0 new file mode 100644 index 000000000..aade2b44e --- /dev/null +++ b/bf/0271eea90d58293538cafcd6c879f8af6f0bc0 @@ -0,0 +1,93 @@ +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 D2FB2431FDB + for ; Mon, 2 Sep 2013 13:15:33 -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 t1VdZDN3MN3T for ; + Mon, 2 Sep 2013 13:15:28 -0700 (PDT) +Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com + [209.85.212.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 4A586431FD0 + for ; Mon, 2 Sep 2013 13:15:26 -0700 (PDT) +Received: by mail-wi0-f171.google.com with SMTP id hq12so2211035wib.4 + for ; Mon, 02 Sep 2013 13:15:25 -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=tvgqmAVy+wQ33jmcexjxAUb6lLZleZ2appNKTntLdCRQcMYGxfI4gNq48QT/HFq+ED + KwV8Nu9urW6ELG/FvyHhvveq/IqHN7H43vhRhDJ3066GSMUwaeYqXx5GZmFhlwX1a2OG + 3Eozsn/mNBS5xPWBSfwQPzqKB66iLvGsH6AhfUri1o7m02UvgDIrjJWv4kiaHA5vipVH + OOKef7HJUo6YoYtqj0IOFkQ0p9NikmrEHGpIy83dy0fsUtKxglrkBjTgqrUjN0MnyfIw + SvteLfdsyrgLOoN/gtjDc8wTsUv4eKXOWXRDhLMcDlqJK0tQtFwFRKXsYmjX7PFrRAl7 + Mq4Q== +X-Received: by 10.180.75.16 with SMTP id y16mr15259513wiv.59.1378152925092; + Mon, 02 Sep 2013 13:15:25 -0700 (PDT) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPSA id jf2sm20389257wic.2.1969.12.31.16.00.00 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Mon, 02 Sep 2013 13:15:24 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [Patch v3 3/3] contrib: pick: test: refresh view +Date: Mon, 2 Sep 2013 21:15:14 +0100 +Message-Id: <1378152914-18930-4-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1378152914-18930-1-git-send-email-markwalters1009@gmail.com> +References: <1378152914-18930-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, 02 Sep 2013 20:15:34 -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 +