summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/media-capabilities
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/media-capabilities
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/media-capabilities')
-rw-r--r--testing/web-platform/meta/media-capabilities/__dir__.ini3
-rw-r--r--testing/web-platform/meta/media-capabilities/decodingInfo.any.js.ini42
-rw-r--r--testing/web-platform/meta/media-capabilities/decodingInfo.webrtc.html.ini41
-rw-r--r--testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.http.html.ini7
-rw-r--r--testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.https.html.ini75
-rw-r--r--testing/web-platform/meta/media-capabilities/encodingInfo.any.js.ini36
-rw-r--r--testing/web-platform/meta/media-capabilities/encodingInfo.webrtc.html.ini43
-rw-r--r--testing/web-platform/meta/media-capabilities/idlharness.any.js.ini7
8 files changed, 254 insertions, 0 deletions
diff --git a/testing/web-platform/meta/media-capabilities/__dir__.ini b/testing/web-platform/meta/media-capabilities/__dir__.ini
new file mode 100644
index 0000000000..d2a3836a62
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/__dir__.ini
@@ -0,0 +1,3 @@
+prefs: [media.media-capabilities.enabled:true, media.media-capabilities.screen.enabled:true]
+lsan-allowed: [Alloc, MakeNotNull, MakeRefPtr, MakeSafeRefPtr, MakeUnique, NewPage, Realloc, RefPtr, Then, mozilla::MozPromise, nsThread::nsThread]
+leak-threshold: [default:51200]
diff --git a/testing/web-platform/meta/media-capabilities/decodingInfo.any.js.ini b/testing/web-platform/meta/media-capabilities/decodingInfo.any.js.ini
new file mode 100644
index 0000000000..cdaab14c54
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/decodingInfo.any.js.ini
@@ -0,0 +1,42 @@
+[decodingInfo.any.html]
+ expected:
+ if (os == "android") and fission: [CRASH, OK]
+ [Test that decodingInfo returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo rejects if the audio configuration contentType has more than one parameters]
+ expected: FAIL
+
+ [Test that decodingInfo rejects if the video configuration contentType has more than one parameter]
+ expected: FAIL
+
+ [Test that decodingInfo with spatialRendering set returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo with hdrMetadataType, colorGamut, and transferFunction set returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo with mismatched codec color space is unsupported]
+ expected: FAIL
+
+
+[decodingInfo.any.worker.html]
+ expected:
+ if (os == "android") and fission: [CRASH, OK]
+ [Test that decodingInfo returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo rejects if the audio configuration contentType has more than one parameters]
+ expected: FAIL
+
+ [Test that decodingInfo rejects if the video configuration contentType has more than one parameter]
+ expected: FAIL
+
+ [Test that decodingInfo with spatialRendering set returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo with hdrMetadataType, colorGamut, and transferFunction set returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo with mismatched codec color space is unsupported]
+ expected: FAIL
diff --git a/testing/web-platform/meta/media-capabilities/decodingInfo.webrtc.html.ini b/testing/web-platform/meta/media-capabilities/decodingInfo.webrtc.html.ini
new file mode 100644
index 0000000000..c0aa3fece2
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/decodingInfo.webrtc.html.ini
@@ -0,0 +1,41 @@
+[decodingInfo.webrtc.html]
+ [Test that decodingInfo returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that decodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc video content type.]
+ expected: FAIL
+
+ [Test that decodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc audio content type.]
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec audio/opus returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec audio/G722 returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec audio/PCMU returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec audio/PCMA returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec video/VP8; max-fs=12288;max-fr=60 returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec video/VP9; max-fs=12288;max-fr=60 returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec video/H264; profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1 returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that decodingInfo returns supported true for the codec video/H264; profile-level-id=42e01f;level-asymmetry-allowed=1 returned by RTCRtpReceiver.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
diff --git a/testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.http.html.ini b/testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.http.html.ini
new file mode 100644
index 0000000000..9ea8a16f59
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.http.html.ini
@@ -0,0 +1,7 @@
+[decodingInfoEncryptedMedia.http.html]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, OK]
+ [Test that decodingInfo() with a keySystemConfiguration fails on a non-secure context.]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, FAIL]
+ FAIL
diff --git a/testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.https.html.ini b/testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.https.html.ini
new file mode 100644
index 0000000000..911da42bdd
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/decodingInfoEncryptedMedia.https.html.ini
@@ -0,0 +1,75 @@
+[decodingInfoEncryptedMedia.https.html]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, OK]
+ [Test that decodingInfo() rejects if distinctiveIdentifier isn't valid.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo() rejects if robustness and configuration do not match (1).]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo() rejects if persistentState isn't valid.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo() rejects if sessionTypes isn't a sequence.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo() rejects if robustness and configuration do not match (3).]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo() rejects if robustness and configuration do not match (2).]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo returns a valid MediaCapabilitiesDecodingInfo objects with encrypted media]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that random key systems are reported as non supported.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that supported=false when keySystemConfiguration is unsupported.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, FAIL]
+ FAIL
+
+ [Test that decodingInfo() does not reject when properties are set to unexpected values.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, PASS]
+
+ [Test that keySystemAccess is only null when not supported if keySystemConfiguration was used.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, PASS]
+
+ [Test that decodingInfo() accepts a key system configuration with video info.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, PASS]
+
+ [Test that decodingInfo() accepts a stub key system configuration (w/audio).]
+ expected:
+ if (os == "android") and fission: [NOTRUN, PASS]
+
+ [Test that decodingInfo() accepts a stub key system configuration (w/video).]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, PASS]
+
+ [Test that decodingInfo() with type webrtc rejects key system configuration.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, PASS]
+
+ [Test that decodingInfo() accepts a key system configuration with audio info.]
+ expected:
+ if (os == "android") and fission: [NOTRUN, PASS]
diff --git a/testing/web-platform/meta/media-capabilities/encodingInfo.any.js.ini b/testing/web-platform/meta/media-capabilities/encodingInfo.any.js.ini
new file mode 100644
index 0000000000..a16a92f33d
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/encodingInfo.any.js.ini
@@ -0,0 +1,36 @@
+[encodingInfo.any.worker.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Test that encodingInfo rejects if the video configuration contentType has more than one parameter]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the video configuration contentType has one parameter that isn't codecs]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the audio configuration contentType has more than one parameters]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the audio configuration contentType has one parameter that isn't codecs]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the MediaConfiguration does not have a valid type]
+ expected: FAIL
+
+
+[encodingInfo.any.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Test that encodingInfo rejects if the video configuration contentType has more than one parameter]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the video configuration contentType has one parameter that isn't codecs]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the audio configuration contentType has more than one parameters]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the audio configuration contentType has one parameter that isn't codecs]
+ expected: FAIL
+
+ [Test that encodingInfo rejects if the MediaConfiguration does not have a valid type]
+ expected: FAIL
diff --git a/testing/web-platform/meta/media-capabilities/encodingInfo.webrtc.html.ini b/testing/web-platform/meta/media-capabilities/encodingInfo.webrtc.html.ini
new file mode 100644
index 0000000000..8fc87c43bc
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/encodingInfo.webrtc.html.ini
@@ -0,0 +1,43 @@
+[encodingInfo.webrtc.html]
+ expected:
+ if (os == "android") and fission: [ERROR, TIMEOUT]
+ [Test that encodingInfo returns a valid MediaCapabilitiesInfo objects]
+ expected: FAIL
+
+ [Test that encodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc video content type.]
+ expected: FAIL
+
+ [Test that encodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc audio content type.]
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec audio/opus returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec audio/G722 returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec audio/PCMU returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec audio/PCMA returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec video/VP8; max-fs=12288;max-fr=60 returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec video/VP9; max-fs=12288;max-fr=60 returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec video/H264; profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1 returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
+
+ [Test that encodingInfo returns supported true for the codec video/H264; profile-level-id=42e01f;level-asymmetry-allowed=1 returned by RTCRtpSender.getCapabilities()]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825286
+ expected: FAIL
diff --git a/testing/web-platform/meta/media-capabilities/idlharness.any.js.ini b/testing/web-platform/meta/media-capabilities/idlharness.any.js.ini
new file mode 100644
index 0000000000..327ea0e2e9
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/idlharness.any.js.ini
@@ -0,0 +1,7 @@
+[idlharness.any.worker.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+
+[idlharness.any.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]