diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/capture_video-manual.html b/webapi/tct-mediacapture-w3c-tests/mediacapture/capture_video-manual.html deleted file mode 100644 index 0a6adc958..000000000 --- a/webapi/tct-mediacapture-w3c-tests/mediacapture/capture_video-manual.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - HTML Media Capture Test: capture_video - - - - - - -

Click the button, allow microphone and camera access, and start to capture a video.

- -

Test passes

-
    -
  1. if there appears a video capture screen,
  2. -
  3. if there is a way to disable the audio record, and
  4. -
  5. if there is a way to stop the video capture.
  6. -
- - - - 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.

+ + + +
+ + + diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_fallback_file_upload.html b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_fallback_file_upload.html new file mode 100644 index 000000000..a66c7ca99 --- /dev/null +++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/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/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_image-manual.html b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_image-manual.html new file mode 100644 index 000000000..9d071d2f7 --- /dev/null +++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/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/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_reflect.html b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_reflect.html new file mode 100644 index 000000000..b02df67c9 --- /dev/null +++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/capture_reflect.html @@ -0,0 +1,57 @@ + + + + + HTML Media Capture Test: capture_reflect + + + + + + + + + + +
+      partial interface HTMLInputElement {
+                attribute boolean capture;
+      };
+    
+ +
+ + + + +
+ +
+ + + + 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