aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/calendar/todo-mode-tests.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lisp/calendar/todo-mode-tests.el b/test/lisp/calendar/todo-mode-tests.el
index 325faeff514..90282045062 100644
--- a/test/lisp/calendar/todo-mode-tests.el
+++ b/test/lisp/calendar/todo-mode-tests.el
@@ -763,6 +763,24 @@ The highlighting should remain enabled."
763 (ert-simulate-command '(forward-line)) ; Now on first done item. 763 (ert-simulate-command '(forward-line)) ; Now on first done item.
764 (should (eq 'hl-line (get-char-property (point) 'face))))) 764 (should (eq 'hl-line (get-char-property (point) 'face)))))
765 765
766(ert-deftest todo-test-edit-quit ()
767 "Test result of exiting todo-edit-mode on a whole file.
768Exiting should return to the same todo-mode or todo-archive-mode
769buffer from which the editing command was invoked."
770 (with-todo-test
771 (todo-test--show 1)
772 (let ((buf (current-buffer)))
773 (todo-edit-file)
774 (todo-edit-quit)
775 (should (eq (current-buffer) buf))
776 (should (eq major-mode 'todo-mode))
777 (todo-find-archive)
778 (let ((buf (current-buffer)))
779 (todo-edit-file)
780 (todo-edit-quit)
781 (should (eq (current-buffer) buf))
782 (should (eq major-mode 'todo-archive-mode))))))
783
766 784
767(provide 'todo-mode-tests) 785(provide 'todo-mode-tests)
768;;; todo-mode-tests.el ends here 786;;; todo-mode-tests.el ends here