Add an animated GIF without a global color table

This commit is contained in:
Bianca Nenciu 2021-01-27 21:55:28 +02:00
parent c78578c097
commit e4c35d951e
No known key found for this signature in database
GPG Key ID: 07E83B117A6B844D
2 changed files with 2 additions and 0 deletions

BIN
test/fixtures/animated_without_gct.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -15,6 +15,7 @@ GoodFixtures = {
"test_v5header.bmp"=>[:bmp, [40, 27]],
"test.gif"=>[:gif, [17, 32]],
"animated.gif"=>[:gif, [400, 400]],
"animated_without_gct.gif"=>[:gif, [859, 478]],
"test.jpg"=>[:jpeg, [882, 470]],
"test.png"=>[:png, [30, 20]],
"test2.jpg"=>[:jpeg, [250, 188]],
@ -108,6 +109,7 @@ class FastImageTest < Test::Unit::TestCase
assert_equal nil, FastImage.animated?(TestUrl + "test.png")
assert_equal false, FastImage.animated?(TestUrl + "test.gif")
assert_equal true, FastImage.animated?(TestUrl + "animated.gif")
assert_equal true, FastImage.animated?(TestUrl + "animated_without_gct.gif")
end
def test_should_return_nil_on_fetch_failure