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>
9 var testFileInfoList
= [
10 { 'name': 'non-existent', 'path': '../resources/non-existent' },
11 { 'name': 'empty-file', 'path': '../resources/empty-file' },
12 { 'name': 'UTF8-file', 'path': '../resources/UTF8.txt' },
13 { 'name': 'UTF16BE-BOM-file', 'path': '../resources/UTF16BE-BOM.txt' },
14 { 'name': 'UTF16LE-BOM-file', 'path': '../resources/UTF16LE-BOM.txt' },
15 { 'name': 'UTF8-BOM-file', 'path': '../resources/UTF8-BOM.txt' },
16 { 'name': 'UTF16BE-file', 'path': '../resources/UTF16BE.txt' },
17 { 'name': 'binary-file', 'path': '../resources/binary-file' },
20 function startTest(testFiles
)
22 startWorker(testFiles
, "resources/worker-read-file-sync.js");
25 if (window
.eventSender
) {
26 testRunner
.dumpAsText();
27 testRunner
.waitUntilDone();
28 window
.onload = function() { runTests(testFileInfoList
); }