mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
test: fix emacs tests after tagging operations changes
After the recent tagging operations changes, functions bound to "+" and "-" in notmuch-search and notmuch-show views always read input from the minibuffer. Use kbd macros instead of calling them directly.
This commit is contained in:
parent
389ddf0f12
commit
148a96c43d
1 changed files with 10 additions and 10 deletions
20
test/emacs
20
test/emacs
|
@ -101,26 +101,26 @@ test_begin_subtest "Add tag from search view"
|
|||
os_x_darwin_thread=$(notmuch search --output=threads id:ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com)
|
||||
test_emacs "(notmuch-search \"$os_x_darwin_thread\")
|
||||
(notmuch-test-wait)
|
||||
(notmuch-search-add-tag \"tag-from-search-view\")"
|
||||
(execute-kbd-macro \"+tag-from-search-view\")"
|
||||
output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-search-view unread)"
|
||||
|
||||
test_begin_subtest "Remove tag from search view"
|
||||
test_emacs "(notmuch-search \"$os_x_darwin_thread\")
|
||||
(notmuch-test-wait)
|
||||
(notmuch-search-remove-tag \"tag-from-search-view\")"
|
||||
(execute-kbd-macro \"-tag-from-search-view\")"
|
||||
output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
|
||||
|
||||
test_begin_subtest "Add tag from notmuch-show view"
|
||||
test_emacs "(notmuch-show \"$os_x_darwin_thread\")
|
||||
(notmuch-show-add-tag \"tag-from-show-view\")"
|
||||
(execute-kbd-macro \"+tag-from-show-view\")"
|
||||
output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-show-view unread)"
|
||||
|
||||
test_begin_subtest "Remove tag from notmuch-show view"
|
||||
test_emacs "(notmuch-show \"$os_x_darwin_thread\")
|
||||
(notmuch-show-remove-tag \"tag-from-show-view\")"
|
||||
(execute-kbd-macro \"-tag-from-show-view\")"
|
||||
output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
|
||||
|
||||
|
@ -128,14 +128,14 @@ test_begin_subtest "Message with .. in Message-Id:"
|
|||
add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'
|
||||
test_emacs '(notmuch-search "id:\"123..456@example\"")
|
||||
(notmuch-test-wait)
|
||||
(notmuch-search-add-tag "search-add")
|
||||
(notmuch-search-add-tag "search-remove")
|
||||
(notmuch-search-remove-tag "search-remove")
|
||||
(execute-kbd-macro "+search-add")
|
||||
(execute-kbd-macro "+search-remove")
|
||||
(execute-kbd-macro "-search-remove")
|
||||
(notmuch-show "id:\"123..456@example\"")
|
||||
(notmuch-test-wait)
|
||||
(notmuch-show-add-tag "show-add")
|
||||
(notmuch-show-add-tag "show-remove")
|
||||
(notmuch-show-remove-tag "show-remove")'
|
||||
(execute-kbd-macro "+show-add")
|
||||
(execute-kbd-macro "+show-remove")
|
||||
(execute-kbd-macro "-show-remove")'
|
||||
output=$(notmuch search 'id:"123..456@example"' | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with .. in Message-Id (inbox search-add show-add)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue