-
-
Notifications
You must be signed in to change notification settings - Fork 2
test: port additional WPT tests for orientation, QP encoding, and content hints #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR ports additional W3C Web Platform Tests (WPT) to improve WebCodecs API spec compliance, adding comprehensive test coverage for orientation handling, per-frame QP encoding, content hints, and H.264-specific features.
Key changes:
- Four new test files covering VideoFrame/VideoEncoder orientation, content hints, and per-frame quantizer control
- Enhanced existing tests with flush behavior, colorSpace assertions, and H.264 SEI/interlaced support
- Three new binary test fixtures for H.264 edge cases (SEI recovery points and interlaced content)
Reviewed changes
Copilot reviewed 8 out of 11 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
video-frame-orientation.spec.ts |
New: Tests VideoFrame rotation (0/90/180/270°) and flip properties with display dimension calculations |
video-encoder-orientation.spec.ts |
New: Tests encoder orientation handling, decoderConfig preservation, and reconfiguration with different orientations |
video-encoder-content-hint.spec.ts |
New: Validates contentHint config preservation ('text', 'motion', 'detail') across codecs |
per-frame-qp-encoding.spec.ts |
New: Tests bitrateMode 'quantizer' with codec-specific QP parameters for AV1, VP9, H.264, H.265 |
video-encoder-behavior.spec.ts |
Updated: Added flush-during-reset tests, colorSpace assertions, and enhanced decoderConfig validation |
video-decoder-behavior.spec.ts |
Updated: Documentation improvements with specific WPT test references |
codec-specific-decoder.spec.ts |
Updated: Added H.264 SEI recovery point and interlaced content decoding tests |
README.md |
Updated: Test counts (608 passing, 6 skipped), new test file entries, and WPT porting status |
h264_sei.mp4, h264_sei.annexb, h264_interlaced.mp4 |
New: Binary test fixtures for H.264 edge cases |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…tent hints Port more W3C Web Platform Tests for improved WebCodecs spec compliance: New test files: - video-frame-orientation.spec.ts: VideoFrame rotation/flip properties - video-encoder-orientation.spec.ts: Encoder orientation handling - per-frame-qp-encoding.spec.ts: bitrateMode 'quantizer' with codec-specific QP - video-encoder-content-hint.spec.ts: contentHint config preservation Updated test files: - codec-specific-decoder.spec.ts: H.264 SEI recovery point and interlaced tests - video-encoder-behavior.spec.ts: Added flush and colorSpace assertions New fixtures: - h264_sei.mp4, h264_sei.annexb: H.264 with SEI recovery points - h264_interlaced.mp4: Interlaced H.264 content Test results: 608 passing, 6 skipped 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
6290675 to
fceb441
Compare

Port more W3C Web Platform Tests for improved WebCodecs spec compliance:
New test files:
Updated test files:
New fixtures:
Test results: 608 passing, 6 skipped
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 [email protected]
Note
Expands WPT coverage and updates status for WebCodecs tests.
video-frame-orientation.spec.ts,video-encoder-orientation.spec.ts,per-frame-qp-encoding.spec.ts, andvideo-encoder-content-hint.spec.tsto cover frame orientation, encoder orientation, per-frame QP (bitrateMode: 'quantizer'), andcontentHintcodec-specific-decoder.spec.tswith H.264 SEI recovery point keyframe handling and interlaced decoding tests (AVC and Annex B)video-encoder-behavior.spec.tswith flush/reset scenarios and colorSpace/displayAspect assertions; updatesvideo-decoder-behavior.spec.tswith WPT-aligned behavior testsWritten by Cursor Bugbot for commit fceb441. This will update automatically on new commits. Configure here.