Update web-platform-tests to revision a3dd2ad02c65588ad280ceac378d82e9250d1045

This commit is contained in:
WPT Sync Bot 2019-10-23 10:27:05 +00:00
parent e26530341b
commit 15e68ad3d3
171 changed files with 2819 additions and 1841 deletions

View file

@ -11,6 +11,14 @@ partial interface ServiceWorkerRegistration {
interface PaymentManager {
[SameObject] readonly attribute PaymentInstruments instruments;
attribute DOMString userHint;
Promise<void> enableDelegations(FrozenArray<PaymentDelegation> delegations);
};
enum PaymentDelegation {
"shippingAddress",
"payerName",
"payerPhone",
"payerEmail"
};
[SecureContext, Exposed=(Window,Worker)]
@ -59,11 +67,13 @@ partial interface ServiceWorkerGlobalScope {
attribute EventHandler onpaymentrequest;
};
dictionary PaymentMethodChangeResponse {
dictionary PaymentRequestDetailsUpdate {
DOMString error;
PaymentCurrencyAmount total;
FrozenArray<PaymentDetailsModifier> modifiers;
FrozenArray<PaymentShippingOption> shippingOptions;
object paymentMethodErrors;
AddressErrors shippingAddressErrors;
};
[Exposed=ServiceWorker]
@ -77,8 +87,12 @@ interface PaymentRequestEvent : ExtendableEvent {
readonly attribute FrozenArray<PaymentDetailsModifier> modifiers;
readonly attribute DOMString instrumentKey;
readonly attribute boolean requestBillingAddress;
readonly attribute object? paymentOptions;
readonly attribute FrozenArray<PaymentShippingOption>? shippingOptions;
Promise<WindowClient?> openWindow(USVString url);
Promise<PaymentMethodChangeResponse?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null);
Promise<PaymentRequestDetailsUpdate?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null);
Promise<PaymentRequestDetailsUpdate?> changeShippingAddress(AddressInit shippingAddress);
Promise<PaymentRequestDetailsUpdate?> changeShippingOption(DOMString shippingOption);
void respondWith(Promise<PaymentHandlerResponse> handlerResponsePromise);
};
@ -90,9 +104,16 @@ dictionary PaymentRequestEventInit : ExtendableEventInit {
PaymentCurrencyAmount total;
sequence<PaymentDetailsModifier> modifiers;
DOMString instrumentKey;
PaymentOptions paymentOptions;
sequence<PaymentShippingOption> shippingOptions;
};
dictionary PaymentHandlerResponse {
DOMString methodName;
object details;
DOMString? payerName;
DOMString? payerEmail;
DOMString? payerPhone;
AddressInit shippingAddress;
DOMString? shippingOption;
};

View file

@ -4,17 +4,29 @@
// Source: Wake Lock API (https://w3c.github.io/wake-lock/)
dictionary WakeLockPermissionDescriptor : PermissionDescriptor {
WakeLockType type;
required WakeLockType type;
};
enum WakeLockType { "screen", "system" };
[SecureContext, Exposed=(DedicatedWorker, Window)]
interface WakeLock {
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
static Promise<void> request(WakeLockType type, optional WakeLockRequestOptions options = {});
[SecureContext]
partial interface Navigator {
[SameObject] readonly attribute WakeLock wakeLock;
};
dictionary WakeLockRequestOptions {
AbortSignal signal;
[SecureContext]
partial interface WorkerNavigator {
[SameObject] readonly attribute WakeLock wakeLock;
};
[SecureContext, Exposed=(DedicatedWorker,Window)]
interface WakeLock {
Promise<WakeLockSentinel> request(WakeLockType type);
};
[SecureContext, Exposed=(DedicatedWorker,Window)]
interface WakeLockSentinel : EventTarget {
readonly attribute WakeLockType type;
Promise<void> release();
attribute EventHandler onrelease;
};

View file

@ -1,7 +1,7 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Web NFC API (https://w3c.github.io/web-nfc/)
// Source: Web NFC (https://w3c.github.io/web-nfc/)
[Exposed=Window]
interface NDEFMessage {

View file

@ -3,12 +3,6 @@
// (https://github.com/tidoust/reffy-reports)
// Source: WebXR Augmented Reality Module - Level 1 (https://immersive-web.github.io/webxr-ar-module/)
enum XRSessionMode {
"inline",
"immersive-vr",
"immersive-ar"
};
enum XREnvironmentBlendMode {
"opaque",
"alpha-blend",

View file

@ -18,7 +18,8 @@ partial interface Navigator {
enum XRSessionMode {
"inline",
"immersive-vr"
"immersive-vr",
"immersive-ar"
};
dictionary XRSessionInit {