diff --git a/test/events/all.js b/test/events/all.js index 436143ba059d..c04107462b54 100644 --- a/test/events/all.js +++ b/test/events/all.js @@ -134,8 +134,7 @@ before(async () => { eventInterfaces.filter(iface => !usedEventInterfaces.has(iface)), [ 'SnapEvent', // pending https://github.com/w3c/csswg-drafts/issues/7442 - 'CustomEvent', // not used by any spec - 'PaymentRequestUpdateEvent' // pending https://github.com/w3c/payment-request/issues/991 + 'CustomEvent' // not used by any spec ], "Event interfaces are defined in the platform but not referenced from extracted events" ); diff --git a/tools/amend-event-data.js b/tools/amend-event-data.js index eae41d4751bf..62f30d6bcfba 100644 --- a/tools/amend-event-data.js +++ b/tools/amend-event-data.js @@ -286,6 +286,18 @@ const patches = { change: { interface: 'DeviceOrientationEvent' } } ], + 'payment-request-1.1': [ + // Spec uses an indirect algo to fire events: + // https://www.w3.org/TR/payment-request/#dfn-paymentrequest-updated-algorithm + // That said, extraction could perhaps process the informative events + // summary table to extract the interface name at some point: + // https://www.w3.org/TR/payment-request/#summary + { + pattern: { type: /^(shipping|payer).*change$/ }, + matched: 3, + change: { interface: "PaymentRequestUpdateEvent" } + } + ], // TODO: to-be-idenfied bug in reffy, see https://github.com/w3c/webref/commit/348b90a37475563d924f4da8156c290ca27d77e2#diff-3877beb696dd5561959ba0c9b8c1485e9c78fbed53b1ec6723ae68621940e0c7 'periodic-background-sync': [ {