Fixed TTS-1932 by merging 7 TCs into to tct-mediacapture-w3c-tests
authorLiu, Xin <xinx.liu@intel.com>
Tue, 27 Aug 2013 06:40:29 +0000 (14:40 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Tue, 27 Aug 2013 10:15:26 +0000 (18:15 +0800)
Signed-off-by: Liu, Xin <xinx.liu@intel.com>
tct-mediacapture-w3c-tests/configure.ac
tct-mediacapture-w3c-tests/mediacapture/Makefile.am
tct-mediacapture-w3c-tests/mediacapture/capture_fallback_file_upload.html [new file with mode: 0644]
tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html [new file with mode: 0644]
tct-mediacapture-w3c-tests/mediacapture/capture_video.html [new file with mode: 0644]
tct-mediacapture-w3c-tests/mediacapture/support/Makefile.am [new file with mode: 0644]
tct-mediacapture-w3c-tests/mediacapture/support/upload.doc [new file with mode: 0644]
tct-mediacapture-w3c-tests/tests.full.xml
tct-mediacapture-w3c-tests/tests.xml

index 7ac9471489ee5e12c17fbcac813134c8a8cf23a0..f02860e08b659562932a900f57523075b956da1e 100644 (file)
@@ -3,5 +3,6 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_CONFIG_FILES([Makefile \
 mediacapture/Makefile \
+mediacapture/support/Makefile \
 resources/Makefile testkit/Makefile])
 AC_OUTPUT
index 2bd5b5740928e840aede4ede826201ae0f86e44b..687569c01d7cd94861cb9a4556552a4330129ee7 100644 (file)
@@ -1,3 +1,4 @@
+SUBDIRS = support
 MediaCapture_SCRIPTS = *
 MediaCapturedir = /opt/tct-mediacapture-w3c-tests/mediacapture
 EXTRA_DIST = $(MediaCapture_SCRIPTS)
diff --git a/tct-mediacapture-w3c-tests/mediacapture/capture_fallback_file_upload.html b/tct-mediacapture-w3c-tests/mediacapture/capture_fallback_file_upload.html
new file mode 100644 (file)
index 0000000..663851f
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+
+-->
+
+<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='http://www.w3.org/TR/2012/WD-html-media-capture-20120712/'>
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check if the input will can accept an file as expected when accept is set to a MIME type" />
+    <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.doc">upload.doc</a> to local.</li>
+      <li>Select the local upload.doc file to run the test.</li>
+    </ol>
+
+    <form>
+      <input id='fileChooser' type='file' accept='text/plain' capture='something'>
+
+    </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.doc', 'file name string is "upload.doc"');
+        }, '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/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html b/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html
new file mode 100644 (file)
index 0000000..b52eeb6
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+
+-->
+
+<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='http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute'>
+    <meta name='flags' content=''>
+    <meta name='assert' content="Check if the capture will be filesystem when set invalid value default or missing value default">
+    <script src='../resources/testharness.js'></script>
+    <script src='../resources/testharnessreport.js'></script>
+  </head>
+  <body>
+    <pre style='display:none'>
+      partial interface HTMLInputElement {
+                attribute boolean capture;
+      };
+    </pre>
+
+    <div style='display:none'>
+      <input id='absent' type='file' accept='image/*'>
+      <input id='present' type='file' accept='image/*' capture='camera'>
+      <input id='present-empty-string' type='file' accept='image/*' capture=''>
+    </div>
+    <div id='log'></div>
+    <script>
+      test(function() {
+        assert_equals(document.querySelector('#absent').capture, 'filesystem', 'capture is empty string');
+      }, 'input.capture is filesystem when the capture attribute is absent');
+
+      test(function() {
+        assert_equals(document.querySelector('#present').capture, 'camera', 'capture is "camera"');
+      }, 'input.capture is correct when the capture attribute is present');
+
+      test(function() {
+        assert_equals(document.querySelector('#present-empty-string').capture, 'filesystem', 'camera is empty string');
+      }, 'input.capture is filesystem when the capture attribute is present as empty string');
+    </script>
+  </body>
+</html>
diff --git a/tct-mediacapture-w3c-tests/mediacapture/capture_video.html b/tct-mediacapture-w3c-tests/mediacapture/capture_video.html
new file mode 100644 (file)
index 0000000..5b79615
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+
+-->
+
+<html>
+  <head>
+    <meta charset='utf-8'>
+    <title>HTML Media Capture Test: capture_video</title>
+    <link rel='author' title='Intel' href='http://www.intel.com'>
+    <link rel='help' href='http://www.w3.org/TR/2012/WD-html-media-capture-20120712/'>
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the input will accept an video when capture set to acmcorder" />
+  </head>
+  <body>
+    <p>Click the button, allow microphone and camera access, and start to capture a video.</p>
+
+    <p>Test passes</p>
+    <ol>
+      <li>if there appears a video capture screen,</li>
+      <li>if there is a way to disable the audio record, and</li>
+      <li>if there is a way to stop the video capture.</li>
+    </ol>
+
+    <input type='file' accept='video/*' capture='camcorder'>
+  </body>
+</html>
diff --git a/tct-mediacapture-w3c-tests/mediacapture/support/Makefile.am b/tct-mediacapture-w3c-tests/mediacapture/support/Makefile.am
new file mode 100644 (file)
index 0000000..6c409c5
--- /dev/null
@@ -0,0 +1,3 @@
+Mediacapture_sup_SCRIPTS = *
+Mediacapture_supdir = /opt/tct-mediacapture-w3c-tests/mediacapture/support
+EXTRA_DIST = $(Mediacapture_sup_SCRIPTS)
diff --git a/tct-mediacapture-w3c-tests/mediacapture/support/upload.doc b/tct-mediacapture-w3c-tests/mediacapture/support/upload.doc
new file mode 100644 (file)
index 0000000..e965047
--- /dev/null
@@ -0,0 +1 @@
+Hello
index 1a2f0213663f5d00115d6b6cf64e8826d4ab56ab..84d2b3710627234e4ca697b23bd8469248fa130a 100644 (file)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if the type of HTMLInputElement is object" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="auto" priority="P1" id="HTMLInputElement_type">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the type of HTMLInputElement is object</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;amp;locator_key=id&amp;amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check if the attribute capture exists" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="auto" priority="P1" id="HTMLInputElement_capture_exist">
         <description>
           <pre_condition/>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if the type of HTMLInputElement.capture is string" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="auto" priority="P1" id="HTMLInputElement_capture_type">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the type of HTMLInputElement.capture is string</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;amp;locator_key=id&amp;amp;value=4</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if input.capture is filesystem when the capture attribute is absent" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="auto" priority="P2" id="input_capture_is_absent">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if input.capture is filesystem when the capture attribute is absent</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html?total_num=3&amp;amp;locator_key=id&amp;amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if input.capture is correct when the capture attribute is present" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="auto" priority="P2" id="input_capture_is_present">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if input.capture is correct when the capture attribute is present</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html?total_num=3&amp;amp;locator_key=id&amp;amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if input.capture is filesystem when the capture attribute is present as empty string" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="auto" priority="P2" id="input_capture_is_empty_string">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if input.capture is filesystem when the capture attribute is present as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html?total_num=3&amp;amp;locator_key=id&amp;amp;value=3</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the input will accept an video when capture set to acmcorder" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="manual" priority="P2" id="capture_video">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Click the button, allow microphone and camera access, and start to capture a video</step_desc>
+              <expected>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.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_video.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the input will can accept an file as expected when accept is set to a MIME type" type="compliance" status="approved" component="WebAPI/Media/HTML Media Capture" execution_type="manual" priority="P2" id="capture_fallback_file_upload">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Download upload.doc to local, then Select the local upload.doc file.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_fallback_file_upload.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="capture" interface="HTMLInputElement" specification="HTML Media Capture" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html-media-capture-20120712/#the-capture-attribute</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>
index 37add2673c2a26d892ea237d2a767a9b5b33644f..1a3d7351df403261e761f918b7cbc69e6ae7edcb 100644 (file)
@@ -8,11 +8,60 @@
           <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;amp;locator_key=id&amp;amp;value=1</test_script_entry>
         </description>
         </testcase>
+      <testcase component="WebAPI/Media/HTML Media Capture" execution_type="auto" id="HTMLInputElement_type" purpose="Check if the type of HTMLInputElement is object">
+        <description>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;amp;locator_key=id&amp;amp;value=2</test_script_entry>
+        </description>
+        </testcase>
       <testcase component="WebAPI/Media/HTML Media Capture" execution_type="auto" id="HTMLInputElement_capture_exist" purpose="Check if the attribute capture exists">
         <description>
           <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;amp;locator_key=id&amp;amp;value=3</test_script_entry>
         </description>
         </testcase>
+      <testcase component="WebAPI/Media/HTML Media Capture" execution_type="auto" id="HTMLInputElement_capture_type" purpose="Check if the type of HTMLInputElement.capture is string">
+        <description>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;amp;locator_key=id&amp;amp;value=4</test_script_entry>
+        </description>
+        </testcase>
+      <testcase component="WebAPI/Media/HTML Media Capture" execution_type="auto" id="input_capture_is_absent" purpose="Check if input.capture is filesystem when the capture attribute is absent">
+        <description>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html?total_num=3&amp;amp;locator_key=id&amp;amp;value=1</test_script_entry>
+        </description>
+        </testcase>
+      <testcase component="WebAPI/Media/HTML Media Capture" execution_type="auto" id="input_capture_is_present" purpose="Check if input.capture is correct when the capture attribute is present">
+        <description>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html?total_num=3&amp;amp;locator_key=id&amp;amp;value=2</test_script_entry>
+        </description>
+        </testcase>
+      <testcase component="WebAPI/Media/HTML Media Capture" execution_type="auto" id="input_capture_is_empty_string" purpose="Check if input.capture is filesystem when the capture attribute is present as empty string">
+        <description>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_reflect.html?total_num=3&amp;amp;locator_key=id&amp;amp;value=3</test_script_entry>
+        </description>
+        </testcase>
+      <testcase component="WebAPI/Media/HTML Media Capture" execution_type="manual" id="capture_video" purpose="Check if the input will accept an video when capture set to acmcorder">
+        <description>
+          <steps>
+            <pre_condition/>
+            <step order="1">
+              <step_desc>Click the button, allow microphone and camera access, and start to capture a video</step_desc>
+              <expected>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.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_video.html</test_script_entry>
+        </description>
+        </testcase>
+        <testcase component="WebAPI/Media/HTML Media Capture" execution_type="manual" id="capture_fallback_file_upload" purpose="Check if the input will can accept an file as expected when accept is set to a MIME type">
+        <description>
+          <steps>
+            <pre_condition/>
+            <step order="1">
+              <step_desc>Download upload.doc to local, then Select the local upload.doc file.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/capture_fallback_file_upload.html</test_script_entry>
+        </description>
+        </testcase>
     </set>
   </suite>
-</test_definition>
\ No newline at end of file
+</test_definition>