; Pacify obsoletion warnings in image-tests.el.
This commit is contained in:
parent
781c43de3d
commit
98775e6cf6
1 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue