test: add Emacs notmuch-hello tests for custom tags and queries section.

The tests use default values from customization widgets to make sure
that these customization widgets work (at least on basic level).

The custom queries section test is currently broken.
This commit is contained in:
Dmitry Kurochkin 2012-05-05 18:39:46 +04:00 committed by David Bremner
parent 97efed0f08
commit 512df7ec47
3 changed files with 23 additions and 0 deletions

View file

@ -44,6 +44,21 @@ test_emacs "(let ((notmuch-hello-sections
(test-output))" (test-output))"
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts
test_begin_subtest "Empty custom tags section"
test_emacs "(let* ((widget (widget-create 'notmuch-hello-tags-section))
(notmuch-hello-sections (list (widget-value widget))))
(notmuch-hello)
(test-output))"
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-empty-custom-tags-section
test_begin_subtest "Empty custom queries section"
test_subtest_known_broken
test_emacs "(let* ((widget (widget-create 'notmuch-hello-query-section))
(notmuch-hello-sections (list (widget-value widget))))
(notmuch-hello)
(test-output))"
test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-empty-custom-queries-section
test_begin_subtest "Column alignment for tag/queries with long names" test_begin_subtest "Column alignment for tag/queries with long names"
tag=a-very-long-tag # length carefully calculated for 80 characters window width tag=a-very-long-tag # length carefully calculated for 80 characters window width
notmuch tag +$tag '*' notmuch tag +$tag '*'

View file

@ -0,0 +1,3 @@
: [hide]

View file

@ -0,0 +1,5 @@
: [hide]
4 attachment 7 signed
52 inbox 52 unread