mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 3a8328470d53c4501e31cec2775c4d33821c2275
This commit is contained in:
parent
f92f0809f8
commit
40c0b971f1
32 changed files with 530 additions and 238 deletions
32
tests/wpt/web-platform-tests/IndexedDB/interfaces.any.js
Normal file
32
tests/wpt/web-platform-tests/IndexedDB/interfaces.any.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
// 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('interface LinkStyle {};'); // Needed by html
|
||||
idl_array.add_untested_idls(html);
|
||||
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');
|
Loading…
Add table
Add a link
Reference in a new issue