1 importScripts("../../resources/read-common.js", "../../resources/read-file-test-cases.js", "worker-read-common.js");
3 // Add specific test for FileReaderSync.
4 testCases
.push("testMultipleReadsSync");
6 function testMultipleReadsSync(testFiles
)
8 log("Test calling multiple read methods in a row");
9 var reader
= createReaderSync();
10 logResult(reader
.readAsArrayBuffer(testFiles
['UTF8-file']));
11 logResult(reader
.readAsBinaryString(testFiles
['binary-file']));
12 logResult(reader
.readAsDataURL(testFiles
['empty-file']));
14 runNextTest(testFiles
);
17 function isReadAsAsync()