]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix interactive image.c tests
authorStefan Kangas <stefankangas@gmail.com>
Tue, 6 Sep 2022 10:56:51 +0000 (12:56 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 6 Sep 2022 10:57:25 +0000 (12:57 +0200)
* test/src/image-tests.el (image-tests-image-metadata/gif)
(image-tests-image-metadata/webp): Fix tests.

test/src/image-tests.el

index 36278f4b9fab0e4fc7531c322a1424e67b793894..c05582ada756f2de7ee519b7f43d8141925add1d 100644 (file)
 
 (ert-deftest image-tests-image-metadata/gif ()
   (image-skip-unless 'gif)
-  (should-not (image-metadata
-               (create-image (cdr (assq 'gif image-tests--images))))))
+  (should (memq 'delay
+                (image-metadata
+                 (create-image (cdr (assq 'gif image-tests--images)))))))
 
 (ert-deftest image-tests-image-metadata/jpeg ()
   (image-skip-unless 'jpeg)
 
 (ert-deftest image-tests-image-metadata/webp ()
   (image-skip-unless 'webp)
-  (should-not (image-metadata
-               (create-image (cdr (assq 'webp image-tests--images))))))
+  (should (memq 'delay
+                (image-metadata
+                 (create-image (cdr (assq 'webp image-tests--images)))))))
 
 (ert-deftest image-tests-image-metadata/xbm ()
   (image-skip-unless 'xbm)