requestId-attribute-manual.https.html (1233B)
1 <!doctype html> 2 <meta charset="utf8"> 3 <link rel="help" href="https://w3c.github.io/payment-request/#dom-paymentresponse-requestid"> 4 <title> 5 PaymentResponse.prototype.requestId attribute 6 </title> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="helpers.js"></script> 10 <h2>requestId attribute</h2> 11 <p> 12 Click on each button in sequence from top to bottom without refreshing the page. 13 Each button will bring up the Payment Request UI window. 14 </p> 15 <p> 16 When presented with the payment sheet, use any credit card select to "Pay". 17 Also confirm any prompts that come up. 18 </p> 19 <ol> 20 <li> 21 <button onclick="runManualTest(this, {}, {})"> 22 Must mirror the payment request's automatically set id 23 </button> 24 </li> 25 <li> 26 <button onclick="runManualTest(this, {}, {requestId: 'pass'}, 'pass').then(done)"> 27 Must mirror the payment request's explicitly set id 28 </button> 29 </li> 30 </ol> 31 <small> 32 If you find a buggy test, please <a href="https://github.com/web-platform-tests/wpt/issues">file a bug</a> 33 and tag one of the <a href="https://github.com/web-platform-tests/wpt/blob/master/payment-request/META.yml">suggested reviewers</a>. 34 </small>