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 +( +) +; +} +;