diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING
index 094c93e34..3a038f7a2 100644
--- a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING
+++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/COPYING
@@ -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:
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
index a66c7ca99..9d71ca3c3 100644
--- 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
@@ -15,12 +15,12 @@
Test steps:
- - Download upload.txt to local.
- - Select the local upload.txt file to run the test.
+ - Download upload.doc to local.
+ - Select the local upload.doc file to run the test.
@@ -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();
diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.doc b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.doc
new file mode 100644
index 000000000..0bc4bf9b3
--- /dev/null
+++ b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.doc
@@ -0,0 +1 @@
+Hello, this is test file for file upload.
diff --git a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.txt b/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.txt
deleted file mode 100644
index e965047ad..000000000
--- a/webapi/tct-mediacapture-w3c-tests/mediacapture/w3c/support/upload.txt
+++ /dev/null
@@ -1 +0,0 @@
-Hello