We add a sort order test for tree view. Also, since tree-view inherits
the sort order from search view when called with
notmuch-tree-from-search-current-query one of the tests coming from
search now has oldest-first sort order so update it appropriately.
---
test/T460-emacs-tree.sh | 11 ++++-
.../notmuch-tree-tag-inbox-oldest-first | 53 ++++++++++++++++++++++
2 files changed, 63 insertions(+), 1 deletion(-)
create mode 100644
test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first
diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh
index 8e9f37c..ae075c5 100755
--- a/test/T460-emacs-tree.sh
+++ b/test/T460-emacs-tree.sh
@@ -23,6 +23,15 @@ test_emacs '(notmuch-tree "tag:inbox")
(delete-other-windows)'
test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox
+test_begin_subtest "Oldest first notmuch-tree view in emacs"
+test_emacs '(notmuch-tree "tag:inbox")
+ (notmuch-test-wait)
+ (notmuch-tree-toggle-order)
+ (notmuch-test-wait)
+ (test-output)
+ (delete-other-windows)'
+test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-oldest-first
+
# In the following tag tests we make sure the display is updated
# correctly and, in a separate test, that the database is updated
# correctly.
@@ -98,7 +107,7 @@ test_emacs '(notmuch-hello)
(notmuch-test-wait)
(test-output)
(delete-other-windows)'
-test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox
+test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-oldest-first
test_begin_subtest "Tree view of a single thread (from search)"
test_emacs '(notmuch-hello)
diff --git a/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first
b/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first
new file mode 100644
index 0000000..588fc58
--- /dev/null
+++ b/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first
@@ -0,0 +1,53 @@
+ 2009-11-17 Mikhail Gusarov â¬âº[notmuch] [PATCH 1/2] Close message
file after parsing message headers (inbox unread)
+ 2009-11-17 Mikhail Gusarov âââº[notmuch] [PATCH 2/2] Include
<stdint.h> to get uint32_t in C++ file with gcc 4.4 (inbox unread)
+ 2009-11-17 Carl Worth â°â¬âº[notmuch] [PATCH 1/2] Close
message file after parsing message headers (inbox unread)
+ 2009-11-17 Keith Packard â°â¬âº ...
(inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Lars Kellogg-Stedman â¬âº[notmuch] Working with Maildir
storage? (inbox signed unread)
+ 2009-11-17 Mikhail Gusarov ââ¬âº ...
(inbox signed unread)
+ 2009-11-17 Lars Kellogg-Stedman ââ°â¬âº ...
(inbox signed unread)
+ 2009-11-17 Mikhail Gusarov â ââ⺠...
(inbox unread)
+ 2009-11-17 Keith Packard â â°â¬âº ...
(inbox unread)
+ 2009-11-18 Lars Kellogg-Stedman â â°â⺠...
(inbox signed unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Alex Botero-Lowry â¬âº[notmuch] preliminary FreeBSD
support (attachment inbox unread)
+ 2009-11-17 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Mikhail Gusarov ââº[notmuch] [PATCH] Handle rename of
message file (inbox unread)
+ 2009-11-17 Keith Packard â¬âº[notmuch] [PATCH] Make notmuch-show
'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)
+ 2009-11-18 Carl Worth â°ââº[notmuch] [PATCH] Make
notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox
unread)
+ 2009-11-17 Jan Janak â¬âº[notmuch] [PATCH] Older versions of
install do not support -C. (inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Jan Janak â¬âº[notmuch] What a great idea!
(inbox unread)
+ 2009-11-17 Jan Janak ââ⺠...
(inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Israel Herraiz â¬âº[notmuch] New to the list
(inbox unread)
+ 2009-11-18 Keith Packard ââ⺠...
(inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Adrian Perez de Cast â¬âº[notmuch] Introducing myself
(inbox signed unread)
+ 2009-11-18 Keith Packard ââ⺠...
(inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Aron Griffis â¬âº[notmuch] archive
(inbox unread)
+ 2009-11-18 Keith Packard â°â¬âº ...
(inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-17 Ingmar Vanhassel â¬âº[notmuch] [PATCH] Typsos
(inbox unread)
+ 2009-11-18 Carl Worth â°â⺠...
(inbox unread)
+ 2009-11-18 Alex Botero-Lowry â¬âº[notmuch] [PATCH] Error out if no
query is supplied to search instead of going into an infinite loop
(attachment inbox unread)
+ 2009-11-18 Carl Worth â°ââº[notmuch] [PATCH] Error out if no
query is supplied to search instead of going into an infinite loop (inbox
unread)
+ 2009-11-18 Lars Kellogg-Stedman â¬âº[notmuch] "notmuch help" outputs to
stderr? (attachment inbox signed unread)
+ 2009-11-18 Lars Kellogg-Stedman â°â⺠...
(attachment inbox signed unread)
+ 2009-11-18 Stewart Smith ââº[notmuch] [PATCH] Fix linking with
gcc to use g++ to link in C++ libs. (inbox unread)
+ 2009-11-18 Stewart Smith ââº[notmuch] [PATCH 2/2] Read mail
directory in inode number order (inbox unread)
+ 2009-11-18 Stewart Smith ââº[notmuch] [PATCH] count_files: sort
directory in inode order before statting (inbox unread)
+ 2009-11-18 Jjgod Jiang â¬âº[notmuch] Mac OS X/Darwin
compatibility issues (inbox unread)
+ 2009-11-18 Alexander Botero-Low â°â¬âº ...
(inbox unread)
+ 2009-11-18 Jjgod Jiang â°â¬âº ...
(inbox unread)
+ 2009-11-18 Alexander Botero-Low â°â⺠...
(inbox unread)
+ 2009-11-18 Jan Janak ââº[notmuch] [PATCH] notmuch new:
Support for conversion of spool subdirectories into tags (inbox unread)
+ 2009-11-18 Rolland Santimano ââº[notmuch] Link to mailing list
archives ? (inbox unread)
+ 2009-11-18 Alexander Botero-Low ââº[notmuch] request for pull
(inbox unread)
+ 2009-11-18 Keith Packard â¬âº[notmuch] [PATCH] Create a default
notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)
+ 2009-11-18 Alexander Botero-Low â°ââº[notmuch] [PATCH] Create a
default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)
+ 2009-11-18 Chris Wilson ââº[notmuch] [PATCH 1/2] Makefile:
evaluate pkg-config once (inbox unread)
+ 2010-12-16 Olivier Berger ââºEssai accentué
(inbox unread)
+ 2010-12-29 François Boulogne ââº[aur-general] Guidelines: cp, mkdir
vs install (inbox unread)
+End of search results.
--
2.1.4