blob: 091549eb2dcb57e1484b88c56b48021be545ced4 [file] [log] [blame]
Joshua Bell3f001762017-10-05 03:33:011<!DOCTYPE html>
2<meta charset=utf-8>
3<title>Entries API: IDL Tests</title>
4<link rel=help href="https://wicg.github.io/entries-api/#idl-index">
5<script src="/resources/testharness.js"></script>
6<script src="/resources/testharnessreport.js"></script>
7<script src="/resources/WebIDLParser.js"></script>
8<script src="/resources/idlharness.js"></script>
9<script>
10'use strict';
11
12promise_test(t => {
Philip Jägenstedt2f451fb2018-03-07 04:48:0513 return fetch('/interfaces/entries-api.idl')
Joshua Bell3f001762017-10-05 03:33:0114 .then(r => r.text())
15 .then(idls => {
16
Joshua Bell2f76ef22017-10-11 16:22:2317 const idl_array = new IdlArray();
Joshua Bell3f001762017-10-05 03:33:0118
19 // https://w3c.github.io/FileAPI/#dfn-file
20 idl_array.add_untested_idls('[Exposed=(Window,Worker)] interface File {};');
21
22 // https://html.spec.whatwg.org/multipage/forms.html#htmlinputelement
23 idl_array.add_untested_idls('interface HTMLInputElement {};');
24
25 // https://html.spec.whatwg.org/multipage/interaction.html#datatransferitem
26 idl_array.add_untested_idls('interface DataTransferItem {};');
27
28 idl_array.add_idls(idls);
29
30 idl_array.add_objects({
31 File: ['new File([], "example.txt")'],
32 HTMLInputElement: ['document.createElement("input")'],
33 });
34
35 idl_array.test();
36 });
37
38}, 'Entries API: IDL');
39</script>