complete-method.tentative.https.html (592B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="help" href="https://w3c.github.io/browser-payment-api/#dom-merchantvalidationevent-complete"> 4 <title>Test for the MerchantValidationEvent's complete() method.</title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <body> 8 <script> 9 test(() => { 10 const event = new MerchantValidationEvent("test"); 11 assert_throws_dom("InvalidStateError", () => { 12 event.complete(""); 13 }) 14 }, "If event's isTrusted attribute is false, then then throw an InvalidStateError DOMException."); 15 </script>