author | Luke Bjerring <lukebjerring@users.noreply.github.com> |
Mon, 25 Jun 2018 22:02:41 +0000 | |
changeset 424259 | 4b27540ab9a64c0f50b537316a2f0dd8793228e5 |
parent 424258 | 5306758aa2c16cfe38b51faa0039e1b233ad7edf |
child 424260 | b13fb5b90fa52b0751433b37a53aadc2930e1fe0 |
push id | 34201 |
push user | shindli@mozilla.com |
push date | Thu, 28 Jun 2018 21:54:04 +0000 |
treeherder | mozilla-central@8f49b2a0e003 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1464861, 11192 |
milestone | 63.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/meta/MANIFEST.json | file | annotate | diff | comparison | revisions | |
testing/web-platform/tests/interfaces/payment-request.idl | file | annotate | diff | comparison | revisions |
--- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -588130,17 +588130,17 @@ "1f0698a8611726b1ba724a5d7a0961e836c7b07e", "support" ], "interfaces/payment-handler.idl": [ "6d9157e515e419c7a2fffc61a1f8e3b23a4550ba", "support" ], "interfaces/payment-request.idl": [ - "8bf519a543c72c282ac08f3feb2b5522913ec82f", + "594179265efe3f056059ba834da5e1873c3e6174", "support" ], "interfaces/pointerevents.idl": [ "29ca4e05813256592af7e9804e8135aaffdcc995", "support" ], "interfaces/pointerlock.idl": [ "6d3ff2b3f8b4015f3cb282db2cd2dbb8c2e90db5",
--- a/testing/web-platform/tests/interfaces/payment-request.idl +++ b/testing/web-platform/tests/interfaces/payment-request.idl @@ -1,131 +1,137 @@ // GENERATED CONTENT - DO NOT EDIT -// Content of this file was automatically extracted from the Payment Request API spec. -// See https://w3c.github.io/payment-request/ +// Content of this file was automatically extracted from the +// "Payment Request API" spec. +// See: https://w3c.github.io/payment-request/ [Constructor(sequence<PaymentMethodData> methodData, PaymentDetailsInit details, optional PaymentOptions options), -SecureContext, Exposed=Window] + SecureContext, + Exposed=Window] interface PaymentRequest : EventTarget { - Promise<PaymentResponse> show(optional Promise<PaymentDetailsUpdate> detailsPromise); - Promise<void> abort(); - Promise<boolean> canMakePayment(); - - readonly attribute DOMString id; - readonly attribute PaymentAddress? shippingAddress; - readonly attribute DOMString? shippingOption; - readonly attribute PaymentShippingType? shippingType; - - attribute EventHandler onshippingaddresschange; - - attribute EventHandler onshippingoptionchange; -}; - -dictionary PaymentMethodData { - required DOMString supportedMethods; - object data; -}; - -dictionary PaymentCurrencyAmount { - required DOMString currency; - required DOMString value; -}; + Promise<PaymentResponse> show(optional Promise<PaymentDetailsUpdate> detailsPromise); + Promise<void> abort(); + Promise<boolean> canMakePayment(); -dictionary PaymentDetailsBase { - sequence<PaymentItem> displayItems; - sequence<PaymentShippingOption> shippingOptions; - sequence<PaymentDetailsModifier> modifiers; -}; - -dictionary PaymentDetailsInit : PaymentDetailsBase { - DOMString id; - required PaymentItem total; -}; - -dictionary PaymentDetailsUpdate : PaymentDetailsBase { - DOMString error; - PaymentItem total; -}; + readonly attribute DOMString id; + readonly attribute PaymentAddress? shippingAddress; + readonly attribute DOMString? shippingOption; + readonly attribute PaymentShippingType? shippingType; -dictionary PaymentDetailsModifier { - required DOMString supportedMethods; - PaymentItem total; - sequence<PaymentItem> additionalDisplayItems; - object data; -}; - -enum PaymentShippingType { - "shipping", - "delivery", - "pickup" -}; - -dictionary PaymentOptions { - boolean requestPayerName = false; - boolean requestPayerEmail = false; - boolean requestPayerPhone = false; - boolean requestShipping = false; - PaymentShippingType shippingType = "shipping"; -}; + attribute EventHandler onshippingaddresschange; -dictionary PaymentItem { - required DOMString label; - required PaymentCurrencyAmount amount; - boolean pending = false; - // Note: type member is "at risk" of being removed! - PaymentItemType type; + attribute EventHandler onshippingoptionchange; +}; +dictionary PaymentMethodData { + required DOMString supportedMethods; + object data; +}; +dictionary PaymentCurrencyAmount { + required DOMString currency; + required DOMString value; +}; +dictionary PaymentDetailsBase { + sequence<PaymentItem> displayItems; + sequence<PaymentShippingOption> shippingOptions; + sequence<PaymentDetailsModifier> modifiers; +}; +dictionary PaymentDetailsInit : PaymentDetailsBase { + DOMString id; + required PaymentItem total; +}; +dictionary PaymentDetailsUpdate : PaymentDetailsBase { + DOMString error; + PaymentItem total; }; - +dictionary PaymentDetailsModifier { + required DOMString supportedMethods; + PaymentItem total; + sequence<PaymentItem> additionalDisplayItems; + object data; +}; +enum PaymentShippingType { + "shipping", + "delivery", + "pickup" +}; +dictionary PaymentOptions { + boolean requestPayerName = false; + boolean requestPayerEmail = false; + boolean requestPayerPhone = false; + boolean requestShipping = false; + PaymentShippingType shippingType = "shipping"; +}; +dictionary PaymentItem { + required DOMString label; + required PaymentCurrencyAmount amount; + boolean pending = false; + // Note: type member is "at risk" of being removed! + PaymentItemType type; +}; enum PaymentItemType { - "tax" + "tax" }; - -[SecureContext, Exposed=Window] +[SecureContext, + Exposed=(Window)] interface PaymentAddress { - [Default] object toJSON(); - readonly attribute DOMString country; - readonly attribute FrozenArray<DOMString> addressLine; - readonly attribute DOMString region; - readonly attribute DOMString city; - readonly attribute DOMString dependentLocality; - readonly attribute DOMString postalCode; - readonly attribute DOMString sortingCode; - readonly attribute DOMString languageCode; - readonly attribute DOMString organization; - readonly attribute DOMString recipient; - readonly attribute DOMString phone; + [Default] object toJSON(); + readonly attribute DOMString city; + readonly attribute DOMString country; + readonly attribute DOMString dependentLocality; + readonly attribute DOMString languageCode; + readonly attribute DOMString organization; + readonly attribute DOMString phone; + readonly attribute DOMString postalCode; + readonly attribute DOMString recipient; + readonly attribute DOMString region; + readonly attribute DOMString regionCode; + readonly attribute DOMString sortingCode; + readonly attribute FrozenArray<DOMString> addressLine; }; - +dictionary AddressInit { + DOMString country; + sequence<DOMString> addressLine; + DOMString region; + DOMString regionCode; + DOMString city; + DOMString dependentLocality; + DOMString postalCode; + DOMString sortingCode; + DOMString languageCode; + DOMString organization; + DOMString recipient; + DOMString phone; +}; dictionary PaymentShippingOption { - required DOMString id; - required DOMString label; - required PaymentCurrencyAmount amount; - boolean selected = false; + required DOMString id; + required DOMString label; + required PaymentCurrencyAmount amount; + boolean selected = false; }; - enum PaymentComplete { - "fail", - "success", - "unknown" + "fail", + "success", + "unknown" }; - -[SecureContext, Exposed=Window] +[SecureContext, + Exposed=Window] interface PaymentResponse { - [Default] object toJSON(); + [Default] object toJSON(); - readonly attribute DOMString requestId; - readonly attribute DOMString methodName; - readonly attribute object details; - readonly attribute PaymentAddress? shippingAddress; - readonly attribute DOMString? shippingOption; - readonly attribute DOMString? payerName; - readonly attribute DOMString? payerEmail; - readonly attribute DOMString? payerPhone; + readonly attribute DOMString requestId; + readonly attribute DOMString methodName; + readonly attribute object details; + readonly attribute PaymentAddress? shippingAddress; + readonly attribute DOMString? shippingOption; + readonly attribute DOMString? payerName; + readonly attribute DOMString? payerEmail; + readonly attribute DOMString? payerPhone; - Promise<void> complete(optional PaymentComplete result = "unknown"); + Promise<void> complete(optional PaymentComplete result = "unknown"); }; - -[Constructor(DOMString type, optional PaymentRequestUpdateEventInit eventInitDict), SecureContext, Exposed=Window] +[Constructor(DOMString type, optional PaymentRequestUpdateEventInit eventInitDict), + SecureContext, + Exposed=Window] interface PaymentRequestUpdateEvent : Event { - void updateWith(Promise<PaymentDetailsUpdate> detailsPromise); + void updateWith(Promise<PaymentDetailsUpdate> detailsPromise); }; - -dictionary PaymentRequestUpdateEventInit : EventInit {}; +dictionary PaymentRequestUpdateEventInit : EventInit { +}; \ No newline at end of file