Closed Bug 1930932 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 49140 - Add some Media Capabilities API tests

Categories

(Core :: WebRTC: Audio/Video, task, P4)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 49140 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/49140
Details from upstream follow.

Chris Needham <chris@chrisneedham.com> wrote:

Add some Media Capabilities API tests

Per spec draft at https://www.w3.org/TR/2024/WD-media-capabilities-20241007/

  • Add tests for 'does not imply a codec'
  • Add tests for 'valid MIME type string'
  • Add tests for 'single media codec'

PTAL @markafoltz

Component: web-platform-tests → WebRTC: Audio/Video
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests and 31 subtests

Status Summary

Firefox

OK : 4
PASS: 108
FAIL: 34

Chrome

OK : 4
PASS: 118
FAIL: 24

Safari

OK : 4
PASS: 120
FAIL: 22

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /media-capabilities/encodingInfo.any.html [wpt.fyi]
    • Test that encodingInfo rejects if the video configuration contentType is not a valid MIME type string: FAIL
    • Test that encodingInfo rejects if the video configuration contentType has one parameter that isn't codecs: FAIL
    • Test that encodingInfo rejects if the audio configuration contentType has one parameter that isn't codecs: FAIL
    • Test that encodingInfo rejects if the MediaConfiguration does not have a valid type: FAIL
  • /media-capabilities/encodingInfo.any.worker.html [wpt.fyi]
    • Test that encodingInfo rejects if the video configuration contentType is not a valid MIME type string: FAIL
    • Test that encodingInfo rejects if the video configuration contentType has one parameter that isn't codecs: FAIL
    • Test that encodingInfo rejects if the audio configuration contentType has one parameter that isn't codecs: FAIL
    • Test that encodingInfo rejects if the MediaConfiguration does not have a valid type: FAIL

New Tests That Don't Pass

  • /media-capabilities/decodingInfo.any.worker.html [wpt.fyi]
    • Test that decodingInfo rejects if the video configuration contentType has more than one parameter: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that decodingInfo rejects if the audio configuration contentType is not a valid MIME type string: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that decodingInfo rejects if the audio configuration contentType has more than one parameter: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that decodingInfo rejects if the audio configuration contentType has a codecs parameter that indicates both an audio and a video codec: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that decodingInfo with mismatched codec color space is unsupported: FAIL (Chrome: PASS, Safari: FAIL)
  • /media-capabilities/decodingInfo.any.html [wpt.fyi]
    • Test that decodingInfo rejects if the video configuration contentType has more than one parameter: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that decodingInfo rejects if the audio configuration contentType is not a valid MIME type string: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that decodingInfo rejects if the audio configuration contentType has more than one parameter: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that decodingInfo rejects if the audio configuration contentType has a codecs parameter that indicates both an audio and a video codec: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that decodingInfo with mismatched codec color space is unsupported: FAIL (Chrome: PASS, Safari: FAIL)
  • /media-capabilities/encodingInfo.any.html [wpt.fyi]
    • Test that encodingInfo rejects if the video configuration contentType is not a valid MIME type string: FAIL (Chrome: PASS, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType has more than one parameter: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that encodingInfo rejects if the video configuration contentType has one parameter that isn't codecs: FAIL (Chrome: PASS, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType does not imply a single media codec but has no codecs parameter: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType has a codecs parameter that indicates multiple video codecs: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType has a codecs parameter that indicates both an audio and a video codec: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType has more than one parameters: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that encodingInfo rejects if the audio configuration contentType has one parameter that isn't codecs: FAIL (Chrome: PASS, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType does not imply a single media codec but has no codecs parameter: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType has a codecs parameter that indicates multiple audio codecs: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType has a codecs parameter that indicates both an audio and a video codec: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the MediaConfiguration does not have a valid type: FAIL (Chrome: PASS, Safari: PASS)
  • /media-capabilities/encodingInfo.any.worker.html [wpt.fyi]
    • Test that encodingInfo rejects if the video configuration contentType is not a valid MIME type string: FAIL (Chrome: PASS, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType has more than one parameter: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that encodingInfo rejects if the video configuration contentType has one parameter that isn't codecs: FAIL (Chrome: PASS, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType does not imply a single media codec but has no codecs parameter: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType has a codecs parameter that indicates multiple video codecs: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the video configuration contentType has a codecs parameter that indicates both an audio and a video codec: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType has more than one parameters: FAIL (Chrome: PASS, Safari: FAIL)
    • Test that encodingInfo rejects if the audio configuration contentType has one parameter that isn't codecs: FAIL (Chrome: PASS, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType does not imply a single media codec but has no codecs parameter: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType has a codecs parameter that indicates multiple audio codecs: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the audio configuration contentType has a codecs parameter that indicates both an audio and a video codec: FAIL (Chrome: FAIL, Safari: PASS)
    • Test that encodingInfo rejects if the MediaConfiguration does not have a valid type: FAIL (Chrome: PASS, Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ef9e87cd2934 [wpt PR 49140] - Add some Media Capabilities API tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/7afc46897a5f [wpt PR 49140] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.