]> git.notmuchmail.org Git - notmuch/commitdiff
contrib: pick: test: refresh view
authorMark Walters <markwalters1009@gmail.com>
Mon, 2 Sep 2013 20:15:14 +0000 (21:15 +0100)
committerDavid Bremner <bremner@debian.org>
Tue, 3 Sep 2013 09:14:40 +0000 (06:14 -0300)
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

index eed5f0211ab91d368b608951d1934ba39323de0a..37f974ad435b9224c41d509a83690aa862b0579f 100755 (executable)
@@ -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))