[Patch v2 3/3] contrib: pick: test: refresh view
authorMark Walters <markwalters1009@gmail.com>
Mon, 26 Aug 2013 21:09:05 +0000 (22:09 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:40 +0000 (09:56 -0800)
63/e0ef6a1f5420b3166e5141bf2cb2d88ed7104e [new file with mode: 0644]

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