-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add some Media Capabilities API tests #49140
Add some Media Capabilities API tests #49140
Conversation
Per spec draft at https://www.w3.org/TR/2024/WD-media-capabilities-20241007/ - Test for 'does not imply a codec' - Test for 'valid MIME type string' - Test for 'single media codec'
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.
Looks good with a few minor fixups.
Presumably we will want similar tests for encodingInfo()
?
I requested merge rights in #49250 so I may be able to merge this myself 👏 |
Thanks. I'll update the tests per your suggestions and add some similar tests for encodingInfo. |
I added encodingInfo tests, fixed a minor issue in the decodingInfo tests I added (with the framerate option), as well for your suggested edits. |
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.
Looks good with one small fix to look at
@@ -180,10 +233,10 @@ promise_test(t => { | |||
width: 800, | |||
height: 600, | |||
bitrate: 3000, | |||
framerate: '24000/1001', | |||
framerate: 24, |
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.
Was this change intentional? The test suggests the framerate needs to be 'x/y'
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.
Sorry, no, I just fixed that.
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.
LGTM!
Per spec draft at https://www.w3.org/TR/2024/WD-media-capabilities-20241007/
PTAL @markafoltz