mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Stub out IDBIndex (#38813)
Stubs the IDBIndex interface. Testing: Mostly stubbing. Eventually covered by WPT. Fixes: Partially #38100 --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
18230e9630
commit
f30be4e1ab
5 changed files with 108 additions and 57 deletions
31
components/script_bindings/webidls/IDBIndex.webidl
Normal file
31
components/script_bindings/webidls/IDBIndex.webidl
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
/*
|
||||
* The origin of this IDL file is
|
||||
* https://w3c.github.io/IndexedDB/#idbindex
|
||||
*
|
||||
*/
|
||||
|
||||
[Pref="dom_indexeddb_enabled", Exposed=(Window,Worker)]
|
||||
interface IDBIndex {
|
||||
// attribute DOMString name;
|
||||
[SameObject] readonly attribute IDBObjectStore objectStore;
|
||||
// readonly attribute any keyPath;
|
||||
readonly attribute boolean multiEntry;
|
||||
readonly attribute boolean unique;
|
||||
|
||||
// [NewObject] IDBRequest get(any query);
|
||||
// [NewObject] IDBRequest getKey(any query);
|
||||
// [NewObject] IDBRequest getAll(optional any queryOrOptions,
|
||||
// optional [EnforceRange] unsigned long count);
|
||||
// [NewObject] IDBRequest getAllKeys(optional any queryOrOptions,
|
||||
// optional [EnforceRange] unsigned long count);
|
||||
// [NewObject] IDBRequest getAllRecords(optional IDBGetAllOptions options = {});
|
||||
// [NewObject] IDBRequest count(optional any query);
|
||||
|
||||
// [NewObject] IDBRequest openCursor(optional any query,
|
||||
// optional IDBCursorDirection direction = "next");
|
||||
// [NewObject] IDBRequest openKeyCursor(optional any query,
|
||||
// optional IDBCursorDirection direction = "next");
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue