]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix shr-tests when Emacs was built without libxml2
authorEli Zaretskii <eliz@gnu.org>
Mon, 23 Sep 2024 15:30:00 +0000 (18:30 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Sep 2024 10:19:58 +0000 (12:19 +0200)
* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if
libxml2 is not available.  (Bug#73440)

(cherry picked from commit e7260d4eb3ed1bebcaa9e2b934f162d4bb42e413)

test/lisp/net/shr-tests.el

index 1980a437b9b5e69320ba5d2b00dc20f6f8a22f05..d0fe8031ed48b3405c66eb4efddaa8b850a75d4b 100644 (file)
@@ -136,7 +136,7 @@ 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 (fboundp 'libxml-parse-html-region))
+  (skip-unless (libxml-available-p))
   (let* ((image (expand-file-name "data/image/blank-100x200.png"
                                   (getenv "EMACS_TEST_DIRECTORY")))
          (image-url (concat "file://" (if (string-prefix-p "/" image)