AC_CONFIG_FILES([Makefile \
mediacapture/Makefile \
+mediacapture/support/Makefile \
resources/Makefile testkit/Makefile])
AC_OUTPUT
+SUBDIRS = support
MediaCapture_SCRIPTS = *
MediaCapturedir = /opt/tct-mediacapture-w3c-tests/mediacapture
EXTRA_DIST = $(MediaCapture_SCRIPTS)
--- /dev/null
+<!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>
--- /dev/null
+<!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>
--- /dev/null
+<!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>
--- /dev/null
+Mediacapture_sup_SCRIPTS = *
+Mediacapture_supdir = /opt/tct-mediacapture-w3c-tests/mediacapture/support
+EXTRA_DIST = $(Mediacapture_sup_SCRIPTS)
</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;locator_key=id&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;locator_key=id&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;locator_key=id&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;locator_key=id&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;locator_key=id&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>
<test_script_entry>/opt/tct-mediacapture-w3c-tests/mediacapture/HTMLInputElement_attribute.html?total_num=4&amp;locator_key=id&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;locator_key=id&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;locator_key=id&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;locator_key=id&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;locator_key=id&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;locator_key=id&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;locator_key=id&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>