; Clean up recently added SVG test

* test/manual/image-tests.el (image-tests-load-image/svg-invalid):
Clean up.
This commit is contained in:
Stefan Kangas 2022-09-09 10:31:25 +02:00
parent 2d9674e865
commit 0ad028c91f

View file

@ -80,14 +80,15 @@
(ert-deftest image-tests-load-image/svg-invalid ()
(with-temp-buffer
(pop-to-buffer (current-buffer))
(insert (propertize " "
'display '(image :data
"invalid foo bar"
:type svg)))
(redisplay))
(with-current-buffer "*Messages*"
(should (string-search "XML parse error" (buffer-string)))))
(let ((messages-buffer-name (buffer-name (current-buffer))))
(with-temp-buffer
(pop-to-buffer (current-buffer))
(insert (propertize " "
'display '(image :data
"invalid foo bar"
:type svg)))
(redisplay))
(should (string-search "XML parse error" (buffer-string))))))
;;;; image-test-size