tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / files / not-enough-arguments.html
1 <html>
2 <head>
3 <script src="../js/resources/js-test-pre.js"></script>
4 <script src="resources/fs-test-util.js"></script>
5 </head>
6 <body>
7 <input type="file">
8 <script>
9 description('This test tries calling various FileAPI functions with too few arguments.');
10
11 var reader = new FileReader();
12
13 shouldThrow('reader.readAsArrayBuffer()');
14 shouldThrow('reader.readAsBinaryString()');
15 shouldThrow('reader.readAsText()');
16 shouldThrow('reader.readAsDataURL()');
17
18 var blobBuilder = new WebKitBlobBuilder();
19
20 shouldThrow('blobBuilder.append()');
21
22 var fileInput = document.getElementsByTagName('input')[0];
23
24 shouldThrow('fileInput.files.item()');
25 </script>
26 <script src="../js/resources/js-test-post.js"></script>
27 </body>
28 </html>