blob: 1be596177fa3fa655f3ecd631a0c0f0d7d17d455 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<!DOCTYPE html>
<html>
<body>
<input type="file" name="file" id="file" onchange="onInputFileChange(testFileInfoList)" multiple>
<pre id='console'></pre>
<script src="resources/setup-for-read-common.js"></script>
<script src="resources/read-common.js"></script>
<script src="resources/read-blob-test-cases.js"></script>
<script>
var testFileInfoList = [
{ 'name': 'non-existent', 'path': 'resources/non-existent' },
{ 'name': 'empty-file', 'path': 'resources/empty-file' },
{ 'name': 'file1', 'path': 'resources/UTF8.txt' },
{ 'name': 'file2', 'path': 'resources/UTF8-2.txt' },
{ 'name': 'file3', 'path': 'resources/UTF8-3.txt' },
];
function isReadAsAsync()
{
return true;
}
function startTest(testFiles)
{
runNextTest(testFiles);
}
if (window.eventSender) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
window.onload = function() { runTests(testFileInfoList); }
}
</script>
</body>
</html>
|