From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../web-platform/tests/html-media-capture/META.yml | 3 + .../html-media-capture/capture_audio-manual.html | 37 +++++++++++++ .../capture_audio_cancel-manual.html | 24 ++++++++ .../capture_fallback_file_upload-manual.html | 44 +++++++++++++++ .../capture_image_cancel-manual.html | 24 ++++++++ .../capture_image_environment-manual.html | 41 ++++++++++++++ .../capture_image_invalid-manual.html | 39 +++++++++++++ .../capture_image_missing-manual.html | 39 +++++++++++++ .../capture_image_user-manual.html | 41 ++++++++++++++ .../tests/html-media-capture/capture_reflect.html | 64 ++++++++++++++++++++++ .../capture_video_cancel-manual.html | 24 ++++++++ .../capture_video_environment-manual.html | 41 ++++++++++++++ .../capture_video_invalid-manual.html | 39 +++++++++++++ .../capture_video_missing-manual.html | 39 +++++++++++++ .../capture_video_user-manual.html | 41 ++++++++++++++ .../tests/html-media-capture/idlharness.window.js | 19 +++++++ .../tests/html-media-capture/support/upload.txt | 1 + 17 files changed, 560 insertions(+) create mode 100644 testing/web-platform/tests/html-media-capture/META.yml create mode 100644 testing/web-platform/tests/html-media-capture/capture_audio-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_audio_cancel-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_fallback_file_upload-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_image_cancel-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_image_environment-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_image_invalid-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_image_missing-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_image_user-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_reflect.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_video_cancel-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_video_environment-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_video_invalid-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_video_missing-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_video_user-manual.html create mode 100644 testing/web-platform/tests/html-media-capture/idlharness.window.js create mode 100644 testing/web-platform/tests/html-media-capture/support/upload.txt (limited to 'testing/web-platform/tests/html-media-capture') diff --git a/testing/web-platform/tests/html-media-capture/META.yml b/testing/web-platform/tests/html-media-capture/META.yml new file mode 100644 index 0000000000..ecbf633fd5 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/META.yml @@ -0,0 +1,3 @@ +spec: https://w3c.github.io/html-media-capture/ +suggested_reviewers: + - anssiko diff --git a/testing/web-platform/tests/html-media-capture/capture_audio-manual.html b/testing/web-platform/tests/html-media-capture/capture_audio-manual.html new file mode 100644 index 0000000000..d9eb11aac4 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_audio-manual.html @@ -0,0 +1,37 @@ + + +HTML Media Capture Test: capture audio to produce one audio file + + + + + + + + +

Clear all microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, capture an audio and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_audio_cancel-manual.html b/testing/web-platform/tests/html-media-capture/capture_audio_cancel-manual.html new file mode 100644 index 0000000000..7c70d29364 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_audio_cancel-manual.html @@ -0,0 +1,24 @@ + + +HTML Media Capture Test: user denial of captured audio leading to no capture + + + + + +

Clear all microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below

+ + + +

Test passes if there is no captured audio saved to the system's data storage.

+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_fallback_file_upload-manual.html b/testing/web-platform/tests/html-media-capture/capture_fallback_file_upload-manual.html new file mode 100644 index 0000000000..d0e0678f5d --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_fallback_file_upload-manual.html @@ -0,0 +1,44 @@ + + + + + HTML Media Capture Test: capture_fallback_file_upload + + + + + + + + +

This test validates that the user agent must act as if there was no capture attribute, when the accept attribute value is set to a MIME type that has no associated capture control type.

+ +

Test steps:

+
    +
  1. Download upload.txt to local.
  2. +
  3. Select the local upload.txt file to run the test.
  4. +
+ +
+ +
+ +
+ + + + diff --git a/testing/web-platform/tests/html-media-capture/capture_image_cancel-manual.html b/testing/web-platform/tests/html-media-capture/capture_image_cancel-manual.html new file mode 100644 index 0000000000..42137b9991 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_image_cancel-manual.html @@ -0,0 +1,24 @@ + + +HTML Media Capture Test: user denial of captured image leading to no capture + + + + + +

Clear all camera permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below

+ + + +

Test passes if there is no captured image saved to the system's data storage.

+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_image_environment-manual.html b/testing/web-platform/tests/html-media-capture/capture_image_environment-manual.html new file mode 100644 index 0000000000..b974222713 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_image_environment-manual.html @@ -0,0 +1,41 @@ + + +HTML Media Capture Test: capture image with 'environment' facing mode to produce one image file + + + + + + + + +

Clear all camera permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with viewing the environment mode.

+ +

(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)

+ +

Capture an image and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_image_invalid-manual.html b/testing/web-platform/tests/html-media-capture/capture_image_invalid-manual.html new file mode 100644 index 0000000000..eb416e009d --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_image_invalid-manual.html @@ -0,0 +1,39 @@ + + +HTML Media Capture Test: capture image with implementation-specific default facing mode(invalid value default) to produce one image file + + + + + + + + +

Clear all camera permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with the default facing mode.

+ +

Capture an image and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_image_missing-manual.html b/testing/web-platform/tests/html-media-capture/capture_image_missing-manual.html new file mode 100644 index 0000000000..405f69a244 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_image_missing-manual.html @@ -0,0 +1,39 @@ + + +HTML Media Capture Test: capture image with implementation-specific default facing mode(missing value default) to produce one image file + + + + + + + + +

Clear all camera permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with the default facing mode.

+ +

Capture an image and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_image_user-manual.html b/testing/web-platform/tests/html-media-capture/capture_image_user-manual.html new file mode 100644 index 0000000000..a2d8c0ecca --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_image_user-manual.html @@ -0,0 +1,41 @@ + + +HTML Media Capture Test: capture image with 'user' facing mode to produce one image file + + + + + + + + +

Clear all camera permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with self-view mode.

+ +

(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)

+ +

Capture an image and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_reflect.html b/testing/web-platform/tests/html-media-capture/capture_reflect.html new file mode 100644 index 0000000000..f593236b53 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_reflect.html @@ -0,0 +1,64 @@ + + + + + HTML Media Capture Test: capture_reflect + + + + + + + + +
+      partial interface HTMLInputElement {
+        attribute CaptureFacingMode capture;
+      };
+      enum CaptureFacingMode {
+        "user",
+        "environment"
+      };
+    
+ +
+ + + + + +
+ +
+ + + + diff --git a/testing/web-platform/tests/html-media-capture/capture_video_cancel-manual.html b/testing/web-platform/tests/html-media-capture/capture_video_cancel-manual.html new file mode 100644 index 0000000000..45aee19f48 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_video_cancel-manual.html @@ -0,0 +1,24 @@ + + +HTML Media Capture Test: user denial of captured video leading to no capture + + + + + +

Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below

+ + + +

Test passes if there is no captured video saved to the system's data storage.

+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_video_environment-manual.html b/testing/web-platform/tests/html-media-capture/capture_video_environment-manual.html new file mode 100644 index 0000000000..03a691e8a6 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_video_environment-manual.html @@ -0,0 +1,41 @@ + + +HTML Media Capture Test: capture video with 'environment' facing mode to produce one video file + + + + + + + + +

Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with viewing the environment mode.

+ +

(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)

+ +

Capture a video and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_video_invalid-manual.html b/testing/web-platform/tests/html-media-capture/capture_video_invalid-manual.html new file mode 100644 index 0000000000..f6c0c3510e --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_video_invalid-manual.html @@ -0,0 +1,39 @@ + + +HTML Media Capture Test: capture video with implementation-specific default facing mode(invalid value default) to produce one video file + + + + + + + + +

Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with the default facing mode.

+ +

Capture an video and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_video_missing-manual.html b/testing/web-platform/tests/html-media-capture/capture_video_missing-manual.html new file mode 100644 index 0000000000..ed63744575 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_video_missing-manual.html @@ -0,0 +1,39 @@ + + +HTML Media Capture Test: capture video with implementation-specific default facing mode(missing value default) to produce one video file + + + + + + + + +

Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with the default facing mode.

+ +

Capture an video and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/capture_video_user-manual.html b/testing/web-platform/tests/html-media-capture/capture_video_user-manual.html new file mode 100644 index 0000000000..47a6732ecf --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_video_user-manual.html @@ -0,0 +1,41 @@ + + +HTML Media Capture Test: capture video with 'user' facing mode to produce one video file + + + + + + + + +

Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.

+ +

After hitting the button below, the camera must be launched with self-view mode.

+ +

(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)

+ +

Capture a video and then confirm the capturing.

+ +

Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.

+ + + +
+ + + diff --git a/testing/web-platform/tests/html-media-capture/idlharness.window.js b/testing/web-platform/tests/html-media-capture/idlharness.window.js new file mode 100644 index 0000000000..d4d739ae8e --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/idlharness.window.js @@ -0,0 +1,19 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +'use strict'; + +// https://w3c.github.io/html-media-capture/ + +idl_test( + ['html-media-capture'], + ['html', 'dom'], + idl_array => { + idl_array.add_objects({ + HTMLInputElement: ['input'], + }); + + self.input = document.createElement('input'); + } +); diff --git a/testing/web-platform/tests/html-media-capture/support/upload.txt b/testing/web-platform/tests/html-media-capture/support/upload.txt new file mode 100644 index 0000000000..e965047ad7 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/support/upload.txt @@ -0,0 +1 @@ +Hello -- cgit v1.2.3