diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/html-media-capture | |
parent | Initial commit. (diff) | |
download | firefox-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/tests/html-media-capture')
17 files changed, 560 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture audio to produce one audio file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, capture an audio and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='audio/*' capture> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^audio\//, 'The captured file should be type of audio'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: user denial of captured audio leading to no capture</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> + +<p>Clear all microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below</p> + +<ul> + + <li>capture an audio and then cancel the capturing;</li> + + <li>capture an audio and then confirm the capturing.</li> + +</ul> + +<p>Test passes if there is no captured audio saved to the system's data storage.</p> + +<input type='file' accept='audio/*' capture> + 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 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset='utf-8'> + <title>HTML Media Capture Test: capture_fallback_file_upload</title> + <link rel='author' title='Intel' href='http://www.intel.com'> + <link rel='help' href='https://w3c.github.io/html-media-capture'> + <link rel='help' href='https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)'> + <meta name='flags' content='interact'> + <script src='/resources/testharness.js'></script> + <script src='/resources/testharnessreport.js'></script> + </head> + <body> + <p>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.</p> + + <p>Test steps:</p> + <ol> + <li>Download <a href='support/upload.txt'>upload.txt</a> to local.</li> + <li>Select the local upload.txt file to run the test.</li> + </ol> + + <form> + <input id='fileChooser' type='file' accept='text/plain' capture> + </form> + + <div id='log'></div> + + <script> + setup({explicit_done: true, explicit_timeout: true}); + + var fileInput = document.querySelector('#fileChooser'); + + on_event(fileInput, 'change', function(evt) { + test(function() { + var fileList = document.querySelector('#fileChooser').files; + assert_equals(fileList.length, 1, 'fileList length is 1'); + assert_equals(fileList.item(0).name, 'upload.txt', 'file name string is "upload.txt"'); + }, 'Check if input.capture fallback to file upload when the accept attribute value is set to a MIME type that has no associated capture control type'); + + done(); + }); + </script> + </body> +</html> 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: user denial of captured image leading to no capture</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> + +<p>Clear all camera permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below</p> + +<ul> + + <li>capture an image and then cancel the capturing;</li> + + <li>capture an image and then confirm the capturing.</li> + +</ul> + +<p>Test passes if there is no captured image saved to the system's data storage.</p> + +<input type='file' accept='image/*' capture> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture image with 'environment' facing mode to produce one image file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with viewing the environment mode.</p> + +<p>(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)</p> + +<p>Capture an image and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='image/*' capture='environment'> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^image\//, 'The captured file should be type of image'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture image with implementation-specific default facing mode(invalid value default) to produce one image file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with the default facing mode.</p> + +<p>Capture an image and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='image/*' capture='invalid'> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^image\//, 'The captured file should be type of image'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture image with implementation-specific default facing mode(missing value default) to produce one image file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with the default facing mode.</p> + +<p>Capture an image and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='image/*' capture> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^image\//, 'The captured file should be type of image'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture image with 'user' facing mode to produce one image file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with self-view mode.</p> + +<p>(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)</p> + +<p>Capture an image and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='image/*' capture='user'> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^image\//, 'The captured file should be type of image'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset='utf-8'> + <title>HTML Media Capture Test: capture_reflect</title> + <link rel='author' title='Intel' href='http://www.intel.com/'> + <link rel='help' href='https://w3c.github.io/html-media-capture/#the-capture-attribute'> + <meta name='flags' content='dom'> + <meta name='assert' content='Test checks that the capture IDL attribute must reflect the content attribute of the same name.'> + <script src='/resources/testharness.js'></script> + <script src='/resources/testharnessreport.js'></script> + </head> + <body> + <pre style='display:none'> + partial interface HTMLInputElement { + attribute CaptureFacingMode capture; + }; + enum CaptureFacingMode { + "user", + "environment" + }; + </pre> + + <div style='display:none'> + <input id='absent' type='file' accept='image/*'> + <input id='present-missing' type='file' accept='image/*' capture> + <input id='present-user' type='file' accept='image/*' capture='user'> + <input id='present-invalid' type='file' accept='image/*' capture='invalid'> + <input id='present-environment' type='file' accept='image/*' capture='environment'> + </div> + + <div id='log'></div> + + <script> + test(function() { + let inputs = document.querySelectorAll('input'); + for (let i=0, obj; i<inputs.length, obj=inputs[i]; i++) { + assert_true('capture' in obj); + assert_equals(typeof obj.capture, 'string'); + } + }, 'Element input should have own property capture'); + + test(function() { + assert_equals(document.querySelector('#absent').capture, ""); + }, 'input.capture is "" when the capture attribute is absent'); + + test(function() { + assert_equals(document.querySelector('#present-missing').capture, ""); + }, 'input.capture is "" when the capture attribute is missing value default'); + + test(function() { + assert_equals(document.querySelector('#present-user').capture, "user"); + }, 'input.capture is "user" when the capture attribute is user'); + + test(function() { + assert_equals(document.querySelector('#present-invalid').capture, ""); + }, 'input.capture is "" when the capture attribute is invalid value default'); + + test(function() { + assert_equals(document.querySelector('#present-environment').capture, "environment"); + }, 'input.capture is "environment" when the capture attribute is environment'); + </script> + </body> +</html> 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: user denial of captured video leading to no capture</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> + +<p>Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below</p> + +<ul> + + <li>capture an video and then cancel the capturing;</li> + + <li>capture an video and then confirm the capturing.</li> + +</ul> + +<p>Test passes if there is no captured video saved to the system's data storage.</p> + +<input type='file' accept='video/*' capture> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture video with 'environment' facing mode to produce one video file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with viewing the environment mode.</p> + +<p>(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)</p> + +<p>Capture a video and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='video/*' capture='environment'> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^video\//, 'The captured file should be type of video'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture video with implementation-specific default facing mode(invalid value default) to produce one video file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with the default facing mode.</p> + +<p>Capture an video and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='video/*' capture='invalid'> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^video\//, 'The captured file should be type of video'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture video with implementation-specific default facing mode(missing value default) to produce one video file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with the default facing mode.</p> + +<p>Capture an video and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='video/*' capture> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^video\//, 'The captured file should be type of video'); + }); + done(); + }); +</script> + 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 @@ +<!DOCTYPE html> +<meta charset='utf-8'> +<title>HTML Media Capture Test: capture video with 'user' facing mode to produce one video file</title> +<link rel='author' title='Intel' href='http://www.intel.com'> +<link rel='help' href='https://w3c.github.io/html-media-capture'> +<link rel='help' href='https://www.w3.org/TR/html5/forms.html#attr-input-accept'> +<meta name='flags' content='interact'> +<meta name="timeout" content="long"> +<script src='/resources/testharness.js'></script> +<script src='/resources/testharnessreport.js'></script> + +<p>Clear all camera/microphone permissions before running this test. If prompted for permission, please allow.</p> + +<p>After hitting the button below, the camera must be launched with self-view mode.</p> + +<p>(Note: If the user agent is unable to support the preferred facing mode, it can fall back to the implementation-specific default facing mode.)</p> + +<p>Capture a video and then confirm the capturing.</p> + +<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p> + +<input type='file' accept='video/*' capture='user'> + +<div id='log'></div> + +<script> + var input; + + setup(function() { + input = document.querySelector('input[type=file]'); + }, {explicit_done: true}); + + async_test(function(t) { + input.onchange = t.step_func_done(function() { + assert_equals(input.files.length, 1, 'Should capture one file'); + assert_regexp_match(input.files[0].type, /^video\//, 'The captured file should be type of video'); + }); + done(); + }); +</script> + 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 |