From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../web-platform/tests/html-media-capture/OWNERS | 2 + .../html-media-capture/capture_audio-manual.html | 37 ++++++++++++++ .../capture_audio_cancel-manual.html | 24 +++++++++ .../capture_fallback_file_upload.html | 44 +++++++++++++++++ .../html-media-capture/capture_image-manual.html | 37 ++++++++++++++ .../capture_image_cancel-manual.html | 24 +++++++++ .../tests/html-media-capture/capture_reflect.html | 57 ++++++++++++++++++++++ .../html-media-capture/capture_video-manual.html | 37 ++++++++++++++ .../capture_video_cancel-manual.html | 24 +++++++++ .../tests/html-media-capture/idlharness.html | 50 +++++++++++++++++++ .../tests/html-media-capture/support/upload.txt | 1 + 11 files changed, 337 insertions(+) create mode 100644 testing/web-platform/tests/html-media-capture/OWNERS 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.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_image-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_reflect.html create mode 100644 testing/web-platform/tests/html-media-capture/capture_video-manual.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/idlharness.html 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/OWNERS b/testing/web-platform/tests/html-media-capture/OWNERS new file mode 100644 index 000000000..b45f53558 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/OWNERS @@ -0,0 +1,2 @@ +@haoxli +@zqzhang 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 000000000..a1f0c3716 --- /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 000000000..73e486000 --- /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.html b/testing/web-platform/tests/html-media-capture/capture_fallback_file_upload.html new file mode 100644 index 000000000..2d25aa14f --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_fallback_file_upload.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-manual.html b/testing/web-platform/tests/html-media-capture/capture_image-manual.html new file mode 100644 index 000000000..1b15fb369 --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_image-manual.html @@ -0,0 +1,37 @@ + + +HTML Media Capture Test: capture image to produce one image file + + + + + + + + +

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

+ +

After hitting the button below, 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_cancel-manual.html b/testing/web-platform/tests/html-media-capture/capture_image_cancel-manual.html new file mode 100644 index 000000000..fafb5d511 --- /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_reflect.html b/testing/web-platform/tests/html-media-capture/capture_reflect.html new file mode 100644 index 000000000..6dd40cc9b --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_reflect.html @@ -0,0 +1,57 @@ + + + + + HTML Media Capture Test: capture_reflect + + + + + + + + + + +
+      partial interface HTMLInputElement {
+                attribute boolean capture;
+      };
+    
+ +
+ + + + +
+ +
+ + + + diff --git a/testing/web-platform/tests/html-media-capture/capture_video-manual.html b/testing/web-platform/tests/html-media-capture/capture_video-manual.html new file mode 100644 index 000000000..b54abae0e --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/capture_video-manual.html @@ -0,0 +1,37 @@ + + +HTML Media Capture Test: capture video 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, 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_cancel-manual.html b/testing/web-platform/tests/html-media-capture/capture_video_cancel-manual.html new file mode 100644 index 000000000..645473701 --- /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/idlharness.html b/testing/web-platform/tests/html-media-capture/idlharness.html new file mode 100644 index 000000000..a204764ae --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/idlharness.html @@ -0,0 +1,50 @@ + + + + + HTML Media Capture IDL tests + + + + + + + + + +

HTML Media Capture IDL tests

+
+ + + + + +
+ +
+ + + + 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 000000000..e965047ad --- /dev/null +++ b/testing/web-platform/tests/html-media-capture/support/upload.txt @@ -0,0 +1 @@ +Hello -- cgit v1.2.3