]> git.eshelyaron.com Git - emacs.git/commit
ert-x: New `ert-with-test-buffer-selected' convenience macro
authorRichard Hansen <rhansen@rhansen.org>
Tue, 28 Jun 2022 05:10:48 +0000 (01:10 -0400)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 11 Sep 2022 11:46:30 +0000 (13:46 +0200)
commit10573e0db7789f933a578d9a89d18b83a1cf6729
tree5069ce6dd04bbd4146e7089d6d1722f3d08e3fe2
parentfeffb03a362ecb9c68d8a852a0cbc6c37c0c6c4b
ert-x: New `ert-with-test-buffer-selected' convenience macro

* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer-selected): New
convenience macro that extends `ert-with-test-buffer' by displaying
the test buffer in a temporary selected window.  This makes it easier
to simulate user input in the body via `execute-kbd-macro'.
* test/lisp/emacs-lisp/ert-x-tests.el
(ert-test-test-buffer-selected/*): Add tests.
lisp/emacs-lisp/ert-x.el
test/lisp/emacs-lisp/ert-x-tests.el