; Pacify obsoletion warnings in image-tests.el.

This commit is contained in:
Basil L. Contovounesios 2022-04-02 19:40:05 +03:00
parent 781c43de3d
commit 98775e6cf6

View file

@ -75,9 +75,10 @@
(should-not (find-image '((:type png :file "does-not-exist-foo-bar.png")))))
(ert-deftest image-type-from-file-name ()
(should (eq (image-type-from-file-name "foo.jpg") 'jpeg))
(should (eq (image-type-from-file-name "foo.png") 'png))
(should (eq (image-type-from-file-name "foo.webp") 'webp)))
(with-suppressed-warnings ((obsolete image-type-from-file-name))
(should (eq (image-type-from-file-name "foo.jpg") 'jpeg))
(should (eq (image-type-from-file-name "foo.png") 'png))
(should (eq (image-type-from-file-name "foo.webp") 'webp))))
(ert-deftest image-type/from-filename ()
;; On emba, `image-types' and `image-load-path' do not exist.