From ef66c907c7f6844b547b09775ff0648d18342c6a Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 10 Feb 2021 00:25:58 +0000 Subject: [PATCH] Bug 1690674 [wpt PR 27468] - StorageBuckets: Add idlharness test, a=testonly 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 Reviewed-by: Victor Costan Cr-Commit-Position: refs/heads/master{#850522} -- wpt-commits: 04d2052354bf1d28fc9c7df01f6d9aa4809b5048 wpt-pr: 27468 UltraBlame original commit: addbdd4b646abe6524959dc36b1bd85d65ed25bb --- .../interfaces/storage-buckets.tentative.idl | 168 ++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 testing/web-platform/tests/interfaces/storage-buckets.tentative.idl diff --git a/testing/web-platform/tests/interfaces/storage-buckets.tentative.idl b/testing/web-platform/tests/interfaces/storage-buckets.tentative.idl new file mode 100644 index 0000000000000..d5a26cce6ed9b --- /dev/null +++ b/testing/web-platform/tests/interfaces/storage-buckets.tentative.idl @@ -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 +( +) +; +} +;