projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e39ad6
)
; ert-x: Add test for buffer read-only state
author
Richard Hansen
<rhansen@rhansen.org>
Sat, 17 Dec 2022 23:26:33 +0000
(18:26 -0500)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 24 Dec 2022 07:10:36 +0000
(09:10 +0200)
This test should have been included with commit
29b7d740006fe2190a729bd1c30ccab9356cee36
.
* test/lisp/emacs-lisp/ert-x-tests.el
(ert-test-with-test-buffer-selected/read-only): New test.
(Bug#60189)
test/lisp/emacs-lisp/ert-x-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/emacs-lisp/ert-x-tests.el
b/test/lisp/emacs-lisp/ert-x-tests.el
index 63e7cd7608f9f3bcdb502b48d8233747f56700ef..f14d54cd9f744959198b58c61f40aca9fa8b7c79 100644
(file)
--- a/
test/lisp/emacs-lisp/ert-x-tests.el
+++ b/
test/lisp/emacs-lisp/ert-x-tests.el
@@
-90,6
+90,11
@@
(ert-with-test-buffer-selected ()
(should (null inhibit-modification-hooks))))
+(ert-deftest ert-test-with-test-buffer-selected/read-only ()
+ (ert-with-test-buffer-selected ()
+ (should (null inhibit-read-only))
+ (should (null buffer-read-only))))
+
(ert-deftest ert-test-with-test-buffer-selected/return-value ()
(should (equal (ert-with-test-buffer-selected () "foo") "foo")))