Skip to content

Commit

Permalink
Bug 1690674 [wpt PR 27468] - StorageBuckets: Add idlharness test, a=t…
Browse files Browse the repository at this point in the history
…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
marco-c committed Feb 10, 2021
1 parent 6abed92 commit ef66c90
Showing 1 changed file with 168 additions and 0 deletions.
168 changes: 168 additions & 0 deletions testing/web-platform/tests/interfaces/storage-buckets.tentative.idl
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
(
)
;
}
;

0 comments on commit ef66c90

Please sign in to comment.