Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Change upload.txt to upload.doc in the checkpoint of input capture (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiuqijix authored and Honry committed Oct 17, 2016
1 parent b609081 commit 7593bf1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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
with some modifications:

1. Modify reference path to test harness
2. Change upload.txt to upload.doc in capture_fallback_file_upload.html

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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

<p>Test steps:</p>
<ol>
<li>Download <a href='support/upload.txt'>upload.txt</a> to local.</li>
<li>Select the local upload.txt file to run the test.</li>
<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>
<input id='fileChooser' type='file' accept='application/msword' capture>
</form>

<div id='log'></div>
Expand All @@ -34,7 +34,7 @@
test(function() {
var fileList = document.querySelector('#fileChooser').files;
assert_equals(fileList.length, 1, 'fileList length is 1');
assert_equals(fileList.item(0).name, 'upload.txt', 'file name string is "upload.txt"');
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();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, this is test file for file upload.

This file was deleted.

0 comments on commit 7593bf1

Please sign in to comment.