4 <input type=
"file" name=
"file" id=
"file" onchange=
"onInputFileChange(testFileInfoList)" multiple
>
5 <pre id='console'
></pre>
7 <script src=
"resources/setup-for-read-common.js"></script>
8 <script src=
"resources/read-common.js"></script>
9 <script src=
"resources/read-file-test-cases.js"></script>
11 var testFileInfoList
= [
12 { 'name': 'non-existent', 'path': 'resources/non-existent' },
13 { 'name': 'empty-file', 'path': 'resources/empty-file' },
14 { 'name': 'UTF8-file', 'path': 'resources/UTF8.txt' },
15 { 'name': 'UTF16BE-BOM-file', 'path': 'resources/UTF16BE-BOM.txt' },
16 { 'name': 'UTF16LE-BOM-file', 'path': 'resources/UTF16LE-BOM.txt' },
17 { 'name': 'UTF8-BOM-file', 'path': 'resources/UTF8-BOM.txt' },
18 { 'name': 'UTF16BE-file', 'path': 'resources/UTF16BE.txt' },
19 { 'name': 'binary-file', 'path': 'resources/binary-file' },
22 function isReadAsAsync()
27 function startTest(testFiles
)
29 runNextTest(testFiles
);
32 if (window
.eventSender
) {
33 testRunner
.dumpAsText();
34 testRunner
.waitUntilDone();
35 window
.onload = function() { runTests(testFileInfoList
); }