Skip to content

Commit 8d5e95c

Browse files
authored
Merge pull request #406 from rswgnu/add-key-series-test-for-braces
Add test for demo key series M-x dired-other-window example
2 parents 9d596dc + 064c23c commit 8d5e95c

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
@@ -5,6 +5,11 @@
55

66
* Remove warnings for unknown functions by using declare-function.
77

8+
2023-11-22 Mats Lidell <[email protected]>
9+
10+
* test/demo-tests.el (fast-demo-key-series-dired-other-window): Add test
11+
from demo key series.
12+
813
2023-11-21 Bob Weiner <[email protected]>
914

1015
* 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)