diff options
| author | Eli Zaretskii | 2025-02-23 00:48:15 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2025-02-23 00:48:15 -0500 |
| commit | 8334a9bd73f01a714ba352a49b1f040264ed4eac (patch) | |
| tree | b4ce9f6dd47103ae5f89a9cae26ba86b5839c51c /test | |
| parent | 8b0043ffd609344f714ba962f82624128e662011 (diff) | |
| parent | 9c1d13c89a94685c0d1120d15e28bfb24e9644c3 (diff) | |
| download | emacs-8334a9bd73f01a714ba352a49b1f040264ed4eac.tar.gz emacs-8334a9bd73f01a714ba352a49b1f040264ed4eac.zip | |
Merge from origin/emacs-30
9c1d13c89a9 ; * admin/authors.el (authors-aliases): Add Vladimir Niki...
443df12eddc ; * INSTALL.REPO: Minor copyedits.
76b938fc1d2 ; Don't fail image tests if jpeg is supported via imagema...
f8ff9592be9 ; Skip autorevert test when notify support is missing
230ecb1e273 ; Skip shr-test/zoom-image test if png or libxml support ...
cc51bd56987 ; Skip image type test if support is missing
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/autorevert-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/image-tests.el | 12 | ||||
| -rw-r--r-- | test/lisp/net/shr-tests.el | 5 |
3 files changed, 14 insertions, 5 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el index 319f3285d2d..d8115b444de 100644 --- a/test/lisp/autorevert-tests.el +++ b/test/lisp/autorevert-tests.el | |||
| @@ -581,6 +581,8 @@ This expects `auto-revert--messages' to be bound by | |||
| 581 | ;; This is inspired by Bug#44638, Bug#71424. | 581 | ;; This is inspired by Bug#44638, Bug#71424. |
| 582 | (ert-deftest auto-revert-test07-auto-revert-several-buffers () | 582 | (ert-deftest auto-revert-test07-auto-revert-several-buffers () |
| 583 | "Check autorevert for several buffers visiting the same file." | 583 | "Check autorevert for several buffers visiting the same file." |
| 584 | (skip-unless (or file-notify--library | ||
| 585 | (file-remote-p temporary-file-directory))) | ||
| 584 | ;; (with-auto-revert-test | 586 | ;; (with-auto-revert-test |
| 585 | (ert-with-temp-file tmpfile | 587 | (ert-with-temp-file tmpfile |
| 586 | (let ((auto-revert-use-notify t) | 588 | (let ((auto-revert-use-notify t) |
diff --git a/test/lisp/image-tests.el b/test/lisp/image-tests.el index 69557c83657..455118cb98c 100644 --- a/test/lisp/image-tests.el +++ b/test/lisp/image-tests.el | |||
| @@ -80,14 +80,20 @@ | |||
| 80 | (should (eq (image-supported-file-p "foo.pbm") 'pbm))) | 80 | (should (eq (image-supported-file-p "foo.pbm") 'pbm))) |
| 81 | 81 | ||
| 82 | (ert-deftest image-supported-file-p/optional () | 82 | (ert-deftest image-supported-file-p/optional () |
| 83 | (if (image-type-available-p 'jpeg) | 83 | (cond ((image-type-available-p 'jpeg) |
| 84 | (should (eq (image-supported-file-p "foo.jpg") 'jpeg)) | 84 | (should (eq (image-supported-file-p "foo.jpg") 'jpeg))) |
| 85 | (should-not (image-supported-file-p "foo.jpg")))) | 85 | ((fboundp 'imagemagick-types) |
| 86 | (should (eq (image-supported-file-p "foo.jpg") 'imagemagick))) | ||
| 87 | (nil | ||
| 88 | (should-not (image-supported-file-p "foo.jpg"))))) | ||
| 86 | 89 | ||
| 87 | (ert-deftest image-supported-file-p/unsupported-returns-nil () | 90 | (ert-deftest image-supported-file-p/unsupported-returns-nil () |
| 88 | (should-not (image-supported-file-p "foo.some-unsupported-format"))) | 91 | (should-not (image-supported-file-p "foo.some-unsupported-format"))) |
| 89 | 92 | ||
| 90 | (ert-deftest image-type-from-file-name () | 93 | (ert-deftest image-type-from-file-name () |
| 94 | (skip-unless (and (image-type-available-p 'jpeg) | ||
| 95 | (image-type-available-p 'png) | ||
| 96 | (image-type-available-p 'webp))) | ||
| 91 | (with-suppressed-warnings ((obsolete image-type-from-file-name)) | 97 | (with-suppressed-warnings ((obsolete image-type-from-file-name)) |
| 92 | (should (eq (image-type-from-file-name "foo.jpg") 'jpeg)) | 98 | (should (eq (image-type-from-file-name "foo.jpg") 'jpeg)) |
| 93 | (should (eq (image-type-from-file-name "foo.png") 'png)) | 99 | (should (eq (image-type-from-file-name "foo.png") 'png)) |
diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el index 4c2fdf0cc70..363cd144e8f 100644 --- a/test/lisp/net/shr-tests.el +++ b/test/lisp/net/shr-tests.el | |||
| @@ -135,8 +135,9 @@ settings, then once more for each (OPTION . VALUE) pair.") | |||
| 135 | 135 | ||
| 136 | (ert-deftest shr-test/zoom-image () | 136 | (ert-deftest shr-test/zoom-image () |
| 137 | "Test that `shr-zoom-image' properly replaces the original image." | 137 | "Test that `shr-zoom-image' properly replaces the original image." |
| 138 | (skip-unless (bound-and-true-p image-types)) | 138 | (skip-unless (and (bound-and-true-p image-types) |
| 139 | (skip-unless (libxml-available-p)) | 139 | (image-type-available-p 'png) |
| 140 | (fboundp 'libxml-parse-html-region))) | ||
| 140 | (let* ((image (expand-file-name "data/image/blank-100x200.png" | 141 | (let* ((image (expand-file-name "data/image/blank-100x200.png" |
| 141 | (getenv "EMACS_TEST_DIRECTORY"))) | 142 | (getenv "EMACS_TEST_DIRECTORY"))) |
| 142 | (image-url (concat "file://" (if (string-prefix-p "/" image) | 143 | (image-url (concat "file://" (if (string-prefix-p "/" image) |