Bug 1464861 [wpt PR 11192] - Auto-update the payment-request IDL, a=testonly
☠☠ backed out by 45cfaa4b4c0c ☠ ☠
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Mon, 25 Jun 2018 22:02:41 +0000
changeset 424038 d64d94aa6f35f1ea749990d21ccff7f9528d5a89
parent 424037 ebc64065cf0c15249f53e3e208985dcb5815833f
child 424039 654939f9e9cd499a8966d28d5f00f95ae194b0b5
push id104729
push userjames@hoppipolla.co.uk
push dateWed, 27 Jun 2018 23:29:57 +0000
treeherdermozilla-inbound@7c351d6f780f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1464861, 11192
milestone63.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
Bug 1464861 [wpt PR 11192] - Auto-update the payment-request IDL, a=testonly Automatic update from web-platform-testsAuto-update the payment-request IDL -- wpt-commits: e8fb48bf865db29f2984e4d6f75c1bb9f06df63a wpt-pr: 11192
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/payment-request.idl
--- 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