Commit 941a2e73 authored by Glenn Morris's avatar Glenn Morris
Browse files

todo-mode: don't assume an ordering of tests

* test/lisp/calendar/todo-mode-tests.el (todo-test-todo-quit02)
(todo-test-item-highlighting): Avoid prompting for input file.
parent 2a22a65f
...@@ -5,18 +5,20 @@ ...@@ -5,18 +5,20 @@
;; Author: Stephen Berman <stephen.berman@gmx.net> ;; Author: Stephen Berman <stephen.berman@gmx.net>
;; Keywords: calendar ;; Keywords: calendar
;; This program is free software; you can redistribute it and/or modify ;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by ;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or ;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version. ;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful, ;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details. ;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License ;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary: ;;; Commentary:
...@@ -93,6 +95,7 @@ current again." ...@@ -93,6 +95,7 @@ current again."
If the buffer made current by invoking todo-quit in a todo-mode If the buffer made current by invoking todo-quit in a todo-mode
buffer is buried by quit-window, the todo-mode buffer should not buffer is buried by quit-window, the todo-mode buffer should not
become current." become current."
(todo-test-get-archive 2)
(todo-show) (todo-show)
(should (todo-test-is-current-buffer todo-test-file-1)) (should (todo-test-is-current-buffer todo-test-file-1))
(let ((dir (dired default-directory))) (let ((dir (dired default-directory)))
...@@ -105,6 +108,7 @@ become current." ...@@ -105,6 +108,7 @@ become current."
(ert-deftest todo-test-item-highlighting () ; bug#27133 (ert-deftest todo-test-item-highlighting () ; bug#27133
"Test whether `todo-toggle-item-highlighting' highlights whole item. "Test whether `todo-toggle-item-highlighting' highlights whole item.
In particular, all lines of a multiline item should be highlighted." In particular, all lines of a multiline item should be highlighted."
(todo-test-get-archive 2)
(todo-show) (todo-show)
(todo-jump-to-category nil "testcat1") ; For test rerun. (todo-jump-to-category nil "testcat1") ; For test rerun.
(todo-toggle-item-highlighting) (todo-toggle-item-highlighting)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment