3 <script src=
"../../resources/js-test.js"></script>
4 <script src=
"resources/fs-test-util.js"></script>
9 description('This test tries calling various FileAPI functions with too few arguments.');
11 var reader
= new FileReader();
13 shouldThrow('reader.readAsArrayBuffer()');
14 shouldThrow('reader.readAsBinaryString()');
15 shouldThrow('reader.readAsText()');
16 shouldThrow('reader.readAsDataURL()');
18 var fileInput
= document
.getElementsByTagName('input')[0];
20 shouldThrow('fileInput.files.item()');