-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indexed DB: Consolidate window/worker IDL tests into any.js
Also, rely on HTML and DOM interfaces for dependencies rather than inline definitions for Event, EventTarget, etc. Change-Id: I58ac6515f8d2769aec6bbf1b90d9a4105639ad24 Reviewed-on: https://chromium-review.googlesource.com/965452 Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Commit-Queue: Joshua Bell <jsbell@chromium.org> Cr-Commit-Position: refs/heads/master@{#544429}
- Loading branch information
1 parent
6e1b5f4
commit ccca6be
Showing
3 changed files
with
32 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.