Skip to content

Tests: an imported animated GIF plays its frames (#651) - #677

Open
vbasky wants to merge 1 commit into
storytold:mainfrom
vbasky:test/651-gif-preview
Open

vbasky wants to merge 1 commit into
storytold:mainfrom
vbasky:test/651-gif-preview

Conversation

@vbasky

@vbasky vbasky commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Animated GIF import became a movie in bfbdadd (crates/media/src/gif_anim.rs), which fixed #651 — but nothing locked the behaviour. This adds a host integration test that writes a red/green/blue GIF (three tenth-second frames), imports it into the wired session as addToComp, and renders at 0.05 / 0.15 / 0.25 s, asserting each third shows the matching colour.

The test fails if a GIF is probed as a still (every timestamp would render the same frame) and passes on current main, so #651 can be closed.

gif was already a workspace dependency; added as a dev-dependency of effectcraft-host to build the fixture, mirroring gif_anim.rs's own test helper.

…torytold#651).

Importing an animated GIF as a movie (bfbdadd) made it preview and export
again, but nothing pinned it: the item must probe as a GIF movie and its
rendered frames must follow the file's own per-frame delays, not hold one
still. Add a host integration test that imports a red/green/blue GIF and
asserts each third of its duration renders the matching colour, so a
regression to still-frame import is caught.
@vbasky vbasky mentioned this pull request Oct 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gifs have issues playing

1 participant