11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<html> 31cb0ef41Sopenharmony_ci <head> 41cb0ef41Sopenharmony_ci <meta charset="utf-8"> 51cb0ef41Sopenharmony_ci <title>File API automated IDL tests</title> 61cb0ef41Sopenharmony_ci <link rel="author" title="Intel" href="http://www.intel.com"> 71cb0ef41Sopenharmony_ci <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#conformance"> 81cb0ef41Sopenharmony_ci <script src="/resources/testharness.js"></script> 91cb0ef41Sopenharmony_ci <script src="/resources/testharnessreport.js"></script> 101cb0ef41Sopenharmony_ci <script src="/resources/WebIDLParser.js"></script> 111cb0ef41Sopenharmony_ci <script src="/resources/idlharness.js"></script> 121cb0ef41Sopenharmony_ci </head> 131cb0ef41Sopenharmony_ci <body> 141cb0ef41Sopenharmony_ci <h1>File API automated IDL tests</h1> 151cb0ef41Sopenharmony_ci 161cb0ef41Sopenharmony_ci <div id="log"></div> 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ci <form name="uploadData"> 191cb0ef41Sopenharmony_ci <input type="file" id="fileChooser"> 201cb0ef41Sopenharmony_ci </form> 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_ci <script> 231cb0ef41Sopenharmony_ci 'use strict'; 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_ci idl_test( 261cb0ef41Sopenharmony_ci ['FileAPI'], 271cb0ef41Sopenharmony_ci ['dom', 'html', 'url'], 281cb0ef41Sopenharmony_ci idl_array => { 291cb0ef41Sopenharmony_ci idl_array.add_objects({ 301cb0ef41Sopenharmony_ci Blob: ['new Blob(["TEST"])'], 311cb0ef41Sopenharmony_ci File: ['new File(["myFileBits"], "myFileName")'], 321cb0ef41Sopenharmony_ci FileList: ['document.querySelector("#fileChooser").files'], 331cb0ef41Sopenharmony_ci FileReader: ['new FileReader()'] 341cb0ef41Sopenharmony_ci }); 351cb0ef41Sopenharmony_ci } 361cb0ef41Sopenharmony_ci ); 371cb0ef41Sopenharmony_ci </script> 381cb0ef41Sopenharmony_ci 391cb0ef41Sopenharmony_ci </body> 401cb0ef41Sopenharmony_ci</html> 41