1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 22:41:06 -08:00
emacs/test/lisp/emacs-lisp
Stefan Kangas 13ca18e1f7 Support selecting buffer in ert-with-test-buffer
* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer): Add new keyword
argument :selected to make the buffer current and selected.
(ert-with-test-buffer-selected): Make obsolete and redefine in
terms of ert-with-test-buffer.

* doc/misc/ert.texi (Helper Functions): Document above new
:selected keyword argument, and remove documentation of
ert-with-test-buffer-selected.

* test/lisp/emacs-lisp/ert-x-tests.el
(ert-test-with-test-buffer-selected/selected)
(ert-test-with-test-buffer-selected/modification-hooks)
(ert-test-with-test-buffer-selected/read-only)
(ert-test-with-test-buffer-selected/return-value)
(ert-test-with-test-buffer-selected/buffer-name):
* test/lisp/progmodes/hideshow-tests.el
(hideshow-tests-with-temp-buffer-selected):
* test/lisp/simple-tests.el (kill-whole-line-invisible)
(kill-whole-line-read-only, kill-whole-line-after-other-kill)
(kill-whole-line-buffer-boundaries)
(kill-whole-line-line-boundaries):
* test/lisp/whitespace-tests.el
(whitespace-tests--with-test-buffer, whitespace-tests--global): Use
ert-with-test-buffer instead of ert-with-test-buffer-selected.
2025-02-24 20:43:53 +01:00
..
bytecomp-resources Single string literal in body is return value only, not doc string 2024-03-07 13:47:53 +01:00
edebug-resources Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
eieio-tests Update copyright year to 2025 2025-01-01 07:39:17 +00:00
ert-font-lock-resources Improve ert-font-lock assertion parser (Bug#69714) 2024-03-28 11:40:27 +02:00
faceup-resources Update copyright year to 2025 2025-01-01 07:39:17 +00:00
faceup-tests Update copyright year to 2025 2025-01-01 07:39:17 +00:00
macroexp-resources Update copyright year to 2025 2025-01-01 07:39:17 +00:00
package-resources Update copyright year to 2025 2025-01-01 07:39:17 +00:00
pp-resources
shadow-resources
testcover-resources Update copyright year to 2025 2025-01-01 07:39:17 +00:00
backquote-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
backtrace-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
benchmark-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
bindat-tests.el Prefer oddp/evenp to free-coding them in tests 2025-02-17 05:37:10 +01:00
byte-run-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
bytecomp-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
cconv-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
check-declare-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
checkdoc-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
cl-extra-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
cl-generic-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
cl-lib-tests.el New macros incf and decf 2025-02-23 00:38:22 +01:00
cl-macs-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
cl-preloaded-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
cl-print-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
cl-seq-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
comp-cstr-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
comp-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
cond-star-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
copyright-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
derived-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
easy-mmode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
edebug-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
ert-font-lock-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
ert-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
ert-x-tests.el Support selecting buffer in ert-with-test-buffer 2025-02-24 20:43:53 +01:00
find-func-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
float-sup-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
generator-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
gv-tests.el New macros incf and decf 2025-02-23 00:38:22 +01:00
hierarchy-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
icons-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
let-alist-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
lisp-mnt-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
lisp-mode-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
lisp-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
macroexp-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
map-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
memory-report-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
multisession-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
nadvice-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
oclosure-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
package-tests.el ; Suppress obsoletion warning in package-x tests. 2025-02-14 15:42:52 +01:00
pcase-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
pp-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
range-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
regexp-opt-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
ring-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
rmc-tests.el Use read-key in read-multiple-choice (bug#75886) 2025-02-04 15:38:02 +01:00
rx-tests.el Make the rx eval form use lexical binding when active 2025-02-17 16:24:53 +01:00
seq-tests.el Prefer oddp/evenp to free-coding them in tests 2025-02-17 05:37:10 +01:00
shadow-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
shortdoc-tests.el Delete redundant lambdas around unary functions 2025-02-11 19:04:00 +01:00
subr-x-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
syntax-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
tabulated-list-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
testcover-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
text-property-search-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
thunk-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
timer-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
track-changes-tests.el Prefer ert-with-temp-directory in tests 2025-02-23 03:46:57 +01:00
unsafep-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
vtable-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
warnings-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00