aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2018-08-10 11:37:11 -0700
committerGlenn Morris2018-08-10 11:37:11 -0700
commitbd6b6cdb62aac5be34a8bb367f43d8367fc341f8 (patch)
treeb5386b322b0b247ab44eefd12e1fa865844249f7 /test
parent506ea8a2f70d8c9d53a34ea9469d3edbe6655f0c (diff)
parent71c92d89137b7fdde6c2bd4bed9b8dfda5fa53dd (diff)
downloademacs-bd6b6cdb62aac5be34a8bb367f43d8367fc341f8.tar.gz
emacs-bd6b6cdb62aac5be34a8bb367f43d8367fc341f8.zip
Merge from origin/emacs-26
71c92d8 Fix copying text properties by 'format' 96be6b6 Improve error messages regarding initial-buffer-choice (Bug#2... 00fb127 * test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01):... Conflicts: lisp/startup.el
Diffstat (limited to 'test')
-rw-r--r--test/lisp/wdired-tests.el4
-rw-r--r--test/src/editfns-tests.el16
2 files changed, 17 insertions, 3 deletions
diff --git a/test/lisp/wdired-tests.el b/test/lisp/wdired-tests.el
index b4ef4ab2486..f1ec4afb6c5 100644
--- a/test/lisp/wdired-tests.el
+++ b/test/lisp/wdired-tests.el
@@ -116,13 +116,13 @@ wdired-mode."
116 (kill-region (point) (progn (search-forward ".") 116 (kill-region (point) (progn (search-forward ".")
117 (forward-char -1) (point))) 117 (forward-char -1) (point)))
118 (insert replace) 118 (insert replace)
119 (should (equal (dired-get-filename) new-file)))) 119 (should (equal (dired-get-filename) new-file)))
120 (when buf 120 (when buf
121 (with-current-buffer buf 121 (with-current-buffer buf
122 ;; Prevent kill-buffer-query-functions from chiming in. 122 ;; Prevent kill-buffer-query-functions from chiming in.
123 (set-buffer-modified-p nil) 123 (set-buffer-modified-p nil)
124 (kill-buffer buf))) 124 (kill-buffer buf)))
125 (delete-directory test-dir t)))) 125 (delete-directory test-dir t)))))
126 126
127 127
128(provide 'wdired-tests) 128(provide 'wdired-tests)
diff --git a/test/src/editfns-tests.el b/test/src/editfns-tests.el
index 2951270dbf7..aa896b06499 100644
--- a/test/src/editfns-tests.el
+++ b/test/src/editfns-tests.el
@@ -88,7 +88,21 @@
88 (format "%-10s" (concat (propertize "01" 'face 'bold) 88 (format "%-10s" (concat (propertize "01" 'face 'bold)
89 (propertize "23" 'face 'underline) 89 (propertize "23" 'face 'underline)
90 (propertize "45" 'face 'italic))) 90 (propertize "45" 'face 'italic)))
91 #("012345 " 0 2 (face bold) 2 4 (face underline) 4 10 (face italic))))) 91 #("012345 "
92 0 2 (face bold) 2 4 (face underline) 4 10 (face italic))))
93 ;; Bug #32404
94 (should (ert-equal-including-properties
95 (format (concat (propertize "%s" 'face 'bold)
96 ""
97 (propertize "%s" 'face 'error))
98 "foo" "bar")
99 #("foobar" 0 3 (face bold) 3 6 (face error))))
100 (should (ert-equal-including-properties
101 (format (concat "%s" (propertize "%s" 'face 'error)) "foo" "bar")
102 #("foobar" 3 6 (face error))))
103 (should (ert-equal-including-properties
104 (format (concat "%s " (propertize "%s" 'face 'error)) "foo" "bar")
105 #("foo bar" 4 7 (face error)))))
92 106
93;; Tests for bug#5131. 107;; Tests for bug#5131.
94(defun transpose-test-reverse-word (start end) 108(defun transpose-test-reverse-word (start end)