diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/editfns-tests.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/editfns-tests.el b/test/src/editfns-tests.el index 714e92e5053..ec411ff773b 100644 --- a/test/src/editfns-tests.el +++ b/test/src/editfns-tests.el | |||
| @@ -247,6 +247,17 @@ | |||
| 247 | (buffer-string) | 247 | (buffer-string) |
| 248 | "foo bar baz qux")))))) | 248 | "foo bar baz qux")))))) |
| 249 | 249 | ||
| 250 | (ert-deftest replace-buffer-contents-bug31837 () | ||
| 251 | (switch-to-buffer "a") | ||
| 252 | (insert-char (char-from-name "SMILE")) | ||
| 253 | (insert "1234") | ||
| 254 | (switch-to-buffer "b") | ||
| 255 | (insert-char (char-from-name "SMILE")) | ||
| 256 | (insert "5678") | ||
| 257 | (replace-buffer-contents "a") | ||
| 258 | (should (equal (buffer-substring-no-properties (point-min) (point-max)) | ||
| 259 | (concat (string (char-from-name "SMILE")) "1234")))) | ||
| 260 | |||
| 250 | (ert-deftest delete-region-undo-markers-1 () | 261 | (ert-deftest delete-region-undo-markers-1 () |
| 251 | "Make sure we don't end up with freed markers reachable from Lisp." | 262 | "Make sure we don't end up with freed markers reachable from Lisp." |
| 252 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30931#40 | 263 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30931#40 |