aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2022-09-09 10:31:25 +0200
committerStefan Kangas2022-09-09 14:20:29 +0200
commit0ad028c91febd0d1a6c8c47babf3dddbe06b68b4 (patch)
treea3ed57377019031b39cef0acccf26745484bc74e /test
parent2d9674e865028357da69d92f18f18f0a3a8d65a0 (diff)
downloademacs-0ad028c91febd0d1a6c8c47babf3dddbe06b68b4.tar.gz
emacs-0ad028c91febd0d1a6c8c47babf3dddbe06b68b4.zip
; Clean up recently added SVG test
* test/manual/image-tests.el (image-tests-load-image/svg-invalid): Clean up.
Diffstat (limited to 'test')
-rw-r--r--test/manual/image-tests.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/manual/image-tests.el b/test/manual/image-tests.el
index c726845bd3b..9cb98252f6a 100644
--- a/test/manual/image-tests.el
+++ b/test/manual/image-tests.el
@@ -80,14 +80,15 @@
80 80
81(ert-deftest image-tests-load-image/svg-invalid () 81(ert-deftest image-tests-load-image/svg-invalid ()
82 (with-temp-buffer 82 (with-temp-buffer
83 (pop-to-buffer (current-buffer)) 83 (let ((messages-buffer-name (buffer-name (current-buffer))))
84 (insert (propertize " " 84 (with-temp-buffer
85 'display '(image :data 85 (pop-to-buffer (current-buffer))
86 "invalid foo bar" 86 (insert (propertize " "
87 :type svg))) 87 'display '(image :data
88 (redisplay)) 88 "invalid foo bar"
89 (with-current-buffer "*Messages*" 89 :type svg)))
90 (should (string-search "XML parse error" (buffer-string))))) 90 (redisplay))
91 (should (string-search "XML parse error" (buffer-string))))))
91 92
92 93
93;;;; image-test-size 94;;;; image-test-size