-
- HTML Media Capture Test: capture_video
-
-
-
-
-
-
-
Click the button, allow microphone and camera access, and start to capture a video.
-
-
Test passes
-
-
if there appears a video capture screen,
-
if there is a way to disable the audio record, and
-
if there is a way to stop the video capture.
-
-
-
-
-
diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING
new file mode 100644
index 000000000..094c93e34
--- /dev/null
+++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING
@@ -0,0 +1,12 @@
+All the files except this COPYING come from
+https://github.com/w3c/web-platform-tests(commit id: ba98b4fcd36adce91ff52ab4b809bc6bd934a27e)
+with modification: Modify reference path to test harness
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_audio-manual.html b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_audio-manual.html
new file mode 100644
index 000000000..09ab45c2a
--- /dev/null
+++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/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.
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.
+
+
+
+
+
+
diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_video-manual.html b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_video-manual.html
new file mode 100644
index 000000000..a695acbcf
--- /dev/null
+++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/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/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.txt b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.txt
new file mode 100644
index 000000000..e965047ad
--- /dev/null
+++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.txt
@@ -0,0 +1 @@
+Hello
diff --git a/webapi/tct-mediacapture-w3c-tests/tests.full.xml b/webapi/tct-mediacapture-w3c-tests/tests.full.xml
index 478eb0258..6f29b3a69 100644
--- a/webapi/tct-mediacapture-w3c-tests/tests.full.xml
+++ b/webapi/tct-mediacapture-w3c-tests/tests.full.xml
@@ -15,17 +15,57 @@
-
+
-
-
-
-
- Click the button, allow microphone and camera access, and start to capture a video
- There appears a video capture screen, there is a way to disable the audio record, and there is a way to stop the video capture.
-
-
- /opt/tct-mediacapture-w3c-tests/mediacapture/capture_video-manual.html
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_audio-manual.html
+
+
+
+
+ http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute
+
+
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_fallback_file_upload.html
+
+
+
+
+ http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute
+
+
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_image-manual.html
+
+
+
+
+ http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute
+
+
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_reflect.html
+
+
+
+
+ http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute
+
+
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_video-manual.html
diff --git a/webapi/tct-mediacapture-w3c-tests/tests.xml b/webapi/tct-mediacapture-w3c-tests/tests.xml
index 199521894..267594645 100644
--- a/webapi/tct-mediacapture-w3c-tests/tests.xml
+++ b/webapi/tct-mediacapture-w3c-tests/tests.xml
@@ -8,16 +8,29 @@
/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html
-
+
-
-
-
- Click the button, allow microphone and camera access, and start to capture a video
- There appears a video capture screen, there is a way to disable the audio record, and there is a way to stop the video capture.
-
-
- /opt/tct-mediacapture-w3c-tests/mediacapture/capture_video-manual.html
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_audio-manual.html
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_fallback_file_upload.html
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_image-manual.html
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_reflect.html
+
+
+
+
+ /opt/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_video-manual.html