EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
- Xinx, liu <xinx.liu@intel.com>
+ Liu, Xin <xinx.liu@intel.com>
-->
<title>MediaCapture Test: HTMLInputElement_exist</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 that the HTMLInputElement attributes are implemented as specified for existence and type" />
+ <meta name="flags" content="">
+ <meta name="assert" content="Check that the HTMLInputElement attributes are implemented as specified for existence and type">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
</head>
Authors:
Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+ Liu, Xin <xinx.liu@intel.com>
+ Li, Hao <haox.li@intel.com>
-->
<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" />
+ <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>
<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>
+ <li>Select the local upload.txt file under the Documents to run the test.</li>
</ol>
<form>
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"');
+ 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();
Authors:
Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+ Liu, Xin <xinx.liu@intel.com>
-->
Authors:
Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+ Liu, Xin <xinx.liu@intel.com>
-->
<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" />
+ <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>
echo "Install /opt/%name/%name.wgt fail ..."
fi
sync
+ ###### cp upload.txt to /opt/usr/media/Documents for mediacapture testing ######
+ if [ -f /opt/tct-mediacapture-w3c-tests/mediacapture/support/upload.txt ]; then
+ cp -f /opt/tct-mediacapture-w3c-tests/mediacapture/support/upload.txt /opt/usr/media/Documents
+ else
+ echo "cp file fail, please check if exists file: /opt/tct-mediacapture-w3c-tests/mediacapture/support/upload.txt..."
+ fi
fi
fi
sync
fi
+ ###### remove upload.txt from /opt/usr/media/Documents after mediacapture testing ######
+ if [ -f /opt/usr/media/Documents/upload.txt ]; then
+ rm -f /opt/usr/media/Documents/upload.txt
+ fi
fi