unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] test: add emacs test for hiding message when point is at invisible text
@ 2011-07-03  4:28 Dmitry Kurochkin
  2011-07-03  4:28 ` [PATCH 2/2] emacs: skip forward to visible text in notmuch-show-message-extent Dmitry Kurochkin
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Kurochkin @ 2011-07-03  4:28 UTC (permalink / raw)
  To: notmuch

Human-friendly scenario:

* open a thread which has at least 2 messages in notmuch-show view
* hide the first message
* move to the first line of the second message
* press C-a (bound to `beginning-of-visual-line')
* press RET (bound to `notmuch-show-toggle-message')

Result: the first message is shown
Expected result: the second message is hidden or shown

Currently the test is failing.  The bug will be fixed by a subsequent
patch.
---
 test/emacs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index 53f455a..173d371 100755
--- a/test/emacs
+++ b/test/emacs
@@ -347,4 +347,15 @@ test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.
 	    (test-visible-output)'
 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-hidden-messages
 
+test_begin_subtest 'Hiding message when point is at invisible text'
+test_emacs '(notmuch-show "id:1258471718-6781-2-git-send-email-dottedmag@dottedmag.net")
+	    (notmuch-show-toggle-message)
+	    (test-visible-output "EXPECTED")
+	    (notmuch-show-toggle-message)
+	    (goto-char (previous-single-char-property-change
+			(point) '\''invisible))
+	    (notmuch-show-toggle-message)
+	    (test-visible-output)'
+test_expect_equal_file OUTPUT EXPECTED
+
 test_done
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-05  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-03  4:28 [PATCH 1/2] test: add emacs test for hiding message when point is at invisible text Dmitry Kurochkin
2011-07-03  4:28 ` [PATCH 2/2] emacs: skip forward to visible text in notmuch-show-message-extent Dmitry Kurochkin
2011-07-04  8:25   ` Pieter Praet
2011-07-05  9:38   ` Dmitry Kurochkin

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).