This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 8416d2b244e9888a331120f59f0ce850646cbf14
Author: Kim Woelders <[email protected]>
AuthorDate: Sun Nov 13 18:04:16 2022 +0100

    test: test_load_2: Check frame 0/1 loading too
---
 test/test_load_2.cpp | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/test/test_load_2.cpp b/test/test_load_2.cpp
index 9fac340..735d996 100644
--- a/test/test_load_2.cpp
+++ b/test/test_load_2.cpp
@@ -91,6 +91,7 @@ TEST(LOAD2, load_1)
              fn = buf;
           }
         D("Load '%s'\n", fn);
+
         im = imlib_load_image(fn);
         ASSERT_TRUE(im);
         imlib_context_set_image(im);
@@ -99,5 +100,26 @@ TEST(LOAD2, load_1)
         h = imlib_image_get_height();
         crc = crc32(0, data, w * h * sizeof(uint32_t));
         EXPECT_EQ(crc, tii[i].crc);
+        imlib_free_image_and_decache();
+
+        im = imlib_load_image_frame(fn, 0);
+        ASSERT_TRUE(im);
+        imlib_context_set_image(im);
+        data = "" char *)imlib_image_get_data();
+        w = imlib_image_get_width();
+        h = imlib_image_get_height();
+        crc = crc32(0, data, w * h * sizeof(uint32_t));
+        EXPECT_EQ(crc, tii[i].crc);
+        imlib_free_image_and_decache();
+
+        im = imlib_load_image_frame(fn, 1);
+        ASSERT_TRUE(im);
+        imlib_context_set_image(im);
+        data = "" char *)imlib_image_get_data();
+        w = imlib_image_get_width();
+        h = imlib_image_get_height();
+        crc = crc32(0, data, w * h * sizeof(uint32_t));
+        EXPECT_EQ(crc, tii[i].crc);
+        imlib_free_image_and_decache();
      }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to