]> git.eshelyaron.com Git - emacs.git/commitdiff
; Don't run new 'shr-test/zoom-image' when built without image support
authorJim Porter <jporterbugs@gmail.com>
Sun, 23 Jun 2024 18:40:30 +0000 (11:40 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 24 Jun 2024 07:16:22 +0000 (09:16 +0200)
* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip when
'image-types' is unbound.

(cherry picked from commit 6619aec6bca6d682be9a995f417e65bb0849d593)

test/lisp/net/shr-tests.el

index b6552674b27e6552b074fab31f1208b6ab300fa5..f9fdb5eb5d36e1348e256c974e547ef828012403 100644 (file)
@@ -134,6 +134,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))
   (let ((image (expand-file-name "data/image/blank-100x200.png"
                                  (getenv "EMACS_TEST_DIRECTORY"))))
     (dolist (alt '(nil "" "nothing to see here"))