Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / read-file-async.html
blob1ed5cb4dddc301dde84d8717ef2753e82577f54c
1 <!DOCTYPE html>
2 <html>
3 <body>
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>
10 <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()
24 return true;
27 function startTest(testFiles)
29 runNextTest(testFiles);
32 if (window.eventSender) {
33 testRunner.dumpAsText();
34 testRunner.waitUntilDone();
35 window.onload = function() { runTests(testFileInfoList); }
37 </script>
38 </body>
39 </html>