https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f94d0b6525c39041274bbc6bf97b1761b96ebe1a authored by Darren Shen on 28 March 2018, 01:47:15 UTC
[css-typed-om] Support some text-decoration properties.
Tip revision: f94d0b6
interfaces.any.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

promise_test(async t => {
  const [html, dom, indexeddb] = await Promise.all([
    '/interfaces/html.idl',
    '/interfaces/dom.idl',
    '/interfaces/IndexedDB.idl',
  ].map(url => fetch(url).then(response => response.text())));

  const idl_array = new IdlArray();
  idl_array.add_untested_idls(html, { only: ['WindowOrWorkerGlobalScope'] });
  idl_array.add_untested_idls(dom);
  idl_array.add_idls(indexeddb);
  idl_array.add_objects({
    IDBCursor: [],
    IDBCursorWithValue: [],
    IDBDatabase: [],
    IDBFactory: [self.indexedDB],
    IDBIndex: [],
    IDBKeyRange: [IDBKeyRange.only(0)],
    IDBObjectStore: [],
    IDBOpenDBRequest: [],
    IDBRequest: [],
    IDBTransaction: [],
    IDBVersionChangeEvent: [new IDBVersionChangeEvent('')],
    DOMStringList: [],
  });

  idl_array.test();
}, 'Test driver');
back to top