Files
tubestation/testing/web-platform/tests/IndexedDB/interfaces.any.js
Robert Ma 4d7f182deb Bug 1448493 [wpt PR 10163] - Fix some IDL tests after html.idl includes SVGElement, a=testonly
Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement

html.idl changed in upstream
https://github.com/w3c/web-platform-tests/pull/10110
and imported in
https://crrev.com/c/978021

Bug: 825191
Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
Reviewed-on: https://chromium-review.googlesource.com/978508
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545588}

wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939
wpt-pr: 10163
wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939
wpt-pr: 10163
2018-04-15 08:35:44 +01:00

32 lines
908 B
JavaScript

// 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');