test: add coverage for video model options, appbuilder types, compositor source, SAM masks, timeline payload - #4237
Merged
Conversation
…tor source, SAM masks, timeline payload Add 5 new test files covering previously untested pure functions: - videoModelOptions: constraints extraction, clampToAllowed, aspect ratio building, model normalization (18 tests) - appbuilder types: eventToAction switch logic for all action kinds (8 tests) - compositor source: isSourceReady and sourceDimensions for video/image/bitmap sources (11 tests) - normalizeSamMasks: mask extraction, URI resolution, dimension scaling, labeling (14 tests) - timelineDocumentPayload: field selection and reference preservation (7 tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clampToAllowed, aspect ratio building, model normalizationeventToActionswitch logic for setState, toggleState, cancel, run, and unknown kindsisSourceReadyandsourceDimensionsfor HTMLVideoElement, HTMLImageElement, and ImageBitmap sourcesTest plan
🤖 Generated with Claude Code