aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Dmitry Kurochkin <dmitry.kurochkin@gmail.com>2011-12-18 04:21:20 +0400
committerGravatar David Bremner <bremner@debian.org>2011-12-20 07:42:14 -0400
commit9928b5b50f44d66d02f422d1f6b6a1bca72a4580 (patch)
tree2512042f84eb8d2c44a62976b257ead306b75b59 /test
parent785028dc2e6bc165456d3c91c1ce3693e6a4cf05 (diff)
test: add broken test for `notmuch-hello-mode-hook' called during update
Test that `notmuch-hello-mode-hook' is not called during `notmuch-hello' buffer updates. The test is currently broken.
Diffstat (limited to 'test')
-rwxr-xr-xtest/emacs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/emacs b/test/emacs
index a864ffa7..b4c24448 100755
--- a/test/emacs
+++ b/test/emacs
@@ -485,4 +485,15 @@ counter=$(test_emacs \
)
test_expect_equal "$counter" 1
+test_begin_subtest "notmuch-hello-mode hook is not called on updates"
+test_subtest_known_broken
+counter=$(test_emacs \
+ '(let ((notmuch-hello-mode-hook-counter 0))
+ (kill-buffer "*notmuch-hello*")
+ (notmuch-hello)
+ (notmuch-hello-update)
+ notmuch-hello-mode-hook-counter)'
+)
+test_expect_equal "$counter" 1
+
test_done