| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
| 4 <script src="resources/fs-test-util.js"></script> | 4 <script src="resources/fs-test-util.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <input type="file"> | 7 <input type="file"> |
| 8 <script> | 8 <script> |
| 9 description('This test tries calling various FileAPI functions with too few argu
ments.'); | 9 description('This test tries calling various FileAPI functions with too few argu
ments.'); |
| 10 | 10 |
| 11 var reader = new FileReader(); | 11 var reader = new FileReader(); |
| 12 | 12 |
| 13 shouldThrow('reader.readAsArrayBuffer()'); | 13 shouldThrow('reader.readAsArrayBuffer()'); |
| 14 shouldThrow('reader.readAsBinaryString()'); | 14 shouldThrow('reader.readAsBinaryString()'); |
| 15 shouldThrow('reader.readAsText()'); | 15 shouldThrow('reader.readAsText()'); |
| 16 shouldThrow('reader.readAsDataURL()'); | 16 shouldThrow('reader.readAsDataURL()'); |
| 17 | 17 |
| 18 var fileInput = document.getElementsByTagName('input')[0]; | 18 var fileInput = document.getElementsByTagName('input')[0]; |
| 19 | 19 |
| 20 shouldThrow('fileInput.files.item()'); | 20 shouldThrow('fileInput.files.item()'); |
| 21 </script> | 21 </script> |
| 22 <script src="../js/resources/js-test-post.js"></script> | |
| 23 </body> | 22 </body> |
| 24 </html> | 23 </html> |
| OLD | NEW |