1<!DOCTYPE html> 2<html> 3 <head> 4 <meta charset="utf-8"> 5 <title>File API manual IDL tests</title> 6 <link rel="author" title="Intel" href="http://www.intel.com"> 7 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#conformance"> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/resources/WebIDLParser.js"></script> 11 <script src="/resources/idlharness.js"></script> 12 </head> 13 <body> 14 <h1>File API manual IDL tests</h1> 15 16 <p>Either download <a href="support/upload.txt">upload.txt</a> and select it below or select an 17 arbitrary local file.</p> 18 19 <form name="uploadData"> 20 <input type="file" id="fileChooser"> 21 </form> 22 23 <div id="log"></div> 24 25 <script> 26 const fileInput = document.querySelector("#fileChooser"); 27 28 setup({explicit_timeout: true}); 29 30 idl_test( 31 ['FileAPI'], 32 ['dom', 'html', 'url'], 33 async idl_array => { 34 await new Promise(resolve => { 35 on_event(fileInput, "change", resolve); 36 }); 37 idl_array.add_objects({ 38 FileList: [fileInput.files], 39 File: [fileInput.files[0]], 40 }); 41 } 42 ); 43 </script> 44 </body> 45</html> 46