Skip to content

Commit 4e625d0

Browse files
committed
Add test for demo key series M-x dired-other-window example
1 parent c371a2d commit 4e625d0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2023-11-22 Mats Lidell <[email protected]>
2+
3+
* test/demo-tests.el (fast-demo-key-series-dired-other-window): Add test
4+
from demo key series.
5+
16
2023-11-21 Bob Weiner <[email protected]>
27

38
* hui-select.el (hui-select-initialize): Fix to set 'syntax-table-sym'

test/demo-tests.el

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Mats Lidell <[email protected]>
44
;;
55
;; Orig-Date: 30-Jan-21 at 12:00:00
6-
;; Last-Mod: 20-Nov-23 at 02:27:10 by Bob Weiner
6+
;; Last-Mod: 22-Nov-23 at 23:22:33 by Mats Lidell
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -438,6 +438,17 @@
438438
(should (print (current-buffer)))))
439439
(hy-test-helpers:kill-buffer help-buffer))))
440440

441+
(ert-deftest fast-demo-key-series-dired-other-window ()
442+
"Action key on `dired-other-window' brings up Dired in the other window."
443+
(skip-unless (not noninteractive))
444+
(with-temp-buffer
445+
(insert "{M-x dired-other-window RET ${hyperb:dir}/*.el RET}")
446+
(goto-char 5)
447+
(action-key)
448+
(hy-test-helpers:consume-input-events)
449+
(should (equal 'dired-mode major-mode))
450+
(should (equal hyperb:dir (expand-file-name default-directory)))))
451+
441452
(ert-deftest fast-demo-key-series-window-grid-22 ()
442453
"Action key on window grid key series creates a grid."
443454
(skip-unless (not noninteractive))

0 commit comments

Comments
 (0)