-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1690674 [wpt PR 27468] - StorageBuckets: Add idlharness test, a=t…
…estonly Automatic update from web-platform-tests StorageBuckets: Add idlharness test This change adds a idlharness test for Storage Buckets API. The IDL is tentative and is not generated because there is no spec draft yet. This is expected to eventually be replaced by a generated IDL file created from the spec. Bug: 1166018 Change-Id: I366562636bf62fbd28f4a018a6ab7824f25ae7e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2673960 Commit-Queue: Victor Costan <pwnallchromium.org> Reviewed-by: Victor Costan <pwnallchromium.org> Cr-Commit-Position: refs/heads/master{#850522} -- wpt-commits: 04d2052354bf1d28fc9c7df01f6d9aa4809b5048 wpt-pr: 27468 UltraBlame original commit: addbdd4b646abe6524959dc36b1bd85d65ed25bb
- Loading branch information
Showing
1 changed file
with
168 additions
and
0 deletions.
There are no files selected for viewing
168 changes: 168 additions & 0 deletions
168
testing/web-platform/tests/interfaces/storage-buckets.tentative.idl
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,168 @@ | ||
[ | ||
Exposed | ||
= | ||
( | ||
Window | ||
Worker | ||
) | ||
SecureContext | ||
] | ||
interface | ||
BucketManager | ||
{ | ||
Promise | ||
< | ||
StorageBucket | ||
> | ||
open | ||
( | ||
DOMString | ||
name | ||
optional | ||
StorageBucketOptions | ||
options | ||
= | ||
{ | ||
} | ||
) | ||
; | ||
Promise | ||
< | ||
sequence | ||
< | ||
DOMString | ||
> | ||
> | ||
keys | ||
( | ||
) | ||
; | ||
Promise | ||
< | ||
undefined | ||
> | ||
delete | ||
( | ||
DOMString | ||
name | ||
) | ||
; | ||
} | ||
; | ||
dictionary | ||
StorageBucketOptions | ||
{ | ||
DOMString | ||
? | ||
title | ||
= | ||
null | ||
; | ||
boolean | ||
persisted | ||
= | ||
false | ||
; | ||
StorageBucketDurability | ||
durability | ||
= | ||
" | ||
relaxed | ||
" | ||
; | ||
unsigned | ||
long | ||
long | ||
? | ||
quota | ||
= | ||
null | ||
; | ||
DOMTimeStamp | ||
? | ||
expires | ||
= | ||
null | ||
; | ||
} | ||
; | ||
enum | ||
StorageBucketDurability | ||
{ | ||
" | ||
strict | ||
" | ||
" | ||
relaxed | ||
" | ||
} | ||
; | ||
[ | ||
Exposed | ||
= | ||
( | ||
Window | ||
Worker | ||
) | ||
SecureContext | ||
] | ||
interface | ||
StorageBucket | ||
{ | ||
[ | ||
Exposed | ||
= | ||
Window | ||
] | ||
Promise | ||
< | ||
boolean | ||
> | ||
persist | ||
( | ||
) | ||
; | ||
Promise | ||
< | ||
boolean | ||
> | ||
persisted | ||
( | ||
) | ||
; | ||
Promise | ||
< | ||
StorageEstimate | ||
> | ||
estimate | ||
( | ||
) | ||
; | ||
Promise | ||
< | ||
StorageBucketDurability | ||
> | ||
durability | ||
( | ||
) | ||
; | ||
Promise | ||
< | ||
undefined | ||
> | ||
setExpires | ||
( | ||
DOMTimeStamp | ||
expires | ||
) | ||
; | ||
Promise | ||
< | ||
DOMTimeStamp | ||
> | ||
expires | ||
( | ||
) | ||
; | ||
} | ||
; |