summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/media-capabilities
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/meta/media-capabilities
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
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.ini36
-rw-r--r--testing/web-platform/meta/media-capabilities/decodingInfo.webrtc.html.ini11
-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.ini12
-rw-r--r--testing/web-platform/meta/media-capabilities/idlharness.any.js.ini7
8 files changed, 187 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..f83c5c3776
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/decodingInfo.any.js.ini
@@ -0,0 +1,36 @@
+[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
+
+
+[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
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..0c6b546cdd
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/decodingInfo.webrtc.html.ini
@@ -0,0 +1,11 @@
+[decodingInfo.webrtc.html]
+ expected: ERROR
+ [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
+
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..5f17d2a9ae
--- /dev/null
+++ b/testing/web-platform/meta/media-capabilities/encodingInfo.webrtc.html.ini
@@ -0,0 +1,12 @@
+[encodingInfo.webrtc.html]
+ expected:
+ if (os == "android") and fission: [ERROR, TIMEOUT]
+ ERROR
+ [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
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]