3 <script src="../js/resources/js-test-pre.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 blobBuilder = new WebKitBlobBuilder();
20 shouldThrow('blobBuilder.append()');
22 var fileInput = document.getElementsByTagName('input')[0];
24 shouldThrow('fileInput.files.item()');
26 <script src="../js/resources/js-test-post.js"></script>