]> git.eshelyaron.com Git - emacs.git/commitdiff
; Skip shr-test/zoom-image test if png or libxml support is missing
authorUlrich Müller <ulm@gentoo.org>
Fri, 21 Feb 2025 09:36:52 +0000 (10:36 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Feb 2025 08:07:11 +0000 (09:07 +0100)
* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if png
images or libxml are not supported.  (Bug#76464)

(cherry picked from commit 230ecb1e273e3fec6400cfad76e9b13f648d9055)

test/lisp/net/shr-tests.el

index 46e19485a0934dbe5cfa16c8d7d8ee8f5efc0130..a69d9f53ef6c2cf78e25afe5bc15eae84a9d468a 100644 (file)
@@ -135,8 +135,9 @@ settings, then once more for each (OPTION . VALUE) pair.")
 
 (ert-deftest shr-test/zoom-image ()
   "Test that `shr-zoom-image' properly replaces the original image."
-  (skip-unless (bound-and-true-p image-types))
-  (skip-unless (libxml-available-p))
+  (skip-unless (and (bound-and-true-p image-types)
+                    (image-type-available-p 'png)
+                    (fboundp 'libxml-parse-html-region)))
   (let* ((image (expand-file-name "data/image/blank-100x200.png"
                                   (getenv "EMACS_TEST_DIRECTORY")))
          (image-url (concat "file://" (if (string-prefix-p "/" image)