From 58c37bf7eb72f11d3566309595da15f6b433a405 Mon Sep 17 00:00:00 2001 From: olokelo Date: Tue, 19 Mar 2024 22:25:19 +0100 Subject: [PATCH] add test case for seeking to the same frame --- Tests/test_file_jxl_animated.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tests/test_file_jxl_animated.py b/Tests/test_file_jxl_animated.py index e00c27639..758fa79e2 100644 --- a/Tests/test_file_jxl_animated.py +++ b/Tests/test_file_jxl_animated.py @@ -59,6 +59,13 @@ def test_seeking() -> None: assert im1.info["timestamp"] == im1.info["timestamp"] assert total_dur == 8000 + assert im1.tell() == 0 and im2.tell() == 0 + + im1.seek(0) + im1.load() + im2.seek(0) + im2.load() + def test_seek_errors() -> None: with Image.open("Tests/images/iss634.jxl") as im: