diff options
| author | Ulrich Müller | 2025-02-21 09:58:16 +0100 |
|---|---|---|
| committer | Ulrich Müller | 2025-02-21 12:58:20 +0100 |
| commit | cc51bd569874cd89a7fa1c3241033e69a5c2dd01 (patch) | |
| tree | 228a2a6a2f49a910d96665029bce4f9fedc4331d | |
| parent | 25ba2536091dea39c690169784fa9771296eefec (diff) | |
| download | emacs-cc51bd569874cd89a7fa1c3241033e69a5c2dd01.tar.gz emacs-cc51bd569874cd89a7fa1c3241033e69a5c2dd01.zip | |
; Skip image type test if support is missing
* test/lisp/image-tests.el (image-type-from-file-name): Skip if
image types are not available. (Bug#76462)
| -rw-r--r-- | test/lisp/image-tests.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/image-tests.el b/test/lisp/image-tests.el index 69557c83657..03d20758052 100644 --- a/test/lisp/image-tests.el +++ b/test/lisp/image-tests.el | |||
| @@ -88,6 +88,9 @@ | |||
| 88 | (should-not (image-supported-file-p "foo.some-unsupported-format"))) | 88 | (should-not (image-supported-file-p "foo.some-unsupported-format"))) |
| 89 | 89 | ||
| 90 | (ert-deftest image-type-from-file-name () | 90 | (ert-deftest image-type-from-file-name () |
| 91 | (skip-unless (and (image-type-available-p 'jpeg) | ||
| 92 | (image-type-available-p 'png) | ||
| 93 | (image-type-available-p 'webp))) | ||
| 91 | (with-suppressed-warnings ((obsolete image-type-from-file-name)) | 94 | (with-suppressed-warnings ((obsolete image-type-from-file-name)) |
| 92 | (should (eq (image-type-from-file-name "foo.jpg") 'jpeg)) | 95 | (should (eq (image-type-from-file-name "foo.jpg") 'jpeg)) |
| 93 | (should (eq (image-type-from-file-name "foo.png") 'png)) | 96 | (should (eq (image-type-from-file-name "foo.png") 'png)) |