shippingOption-attribute-manual.https.html (1751B)
1 <!doctype html> 2 <meta charset="utf8"> 3 <link rel="help" href="https://w3c.github.io/payment-request/#dom-paymentresponse-shippingoption"> 4 <title> 5 PaymentResponse.prototype.complete() method 6 </title> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="helpers.js"></script> 10 <h2>shippingOption 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 For the last test, please select the only available shipping option and select "Pay". 17 </p> 18 <ol> 19 <li> 20 <button onclick="runManualTest(this, undefined, { shippingOption: null })"> 21 If the options is undefined, then shippingOption must be null. 22 </button> 23 </li> 24 <li> 25 <button onclick="runManualTest(this, { requestShipping: undefined }, { shippingOption: null })"> 26 If the requestShipping member is missing, then shippingOption must be null. 27 </button> 28 </li> 29 <li> 30 <button onclick="runManualTest(this, { requestShipping: false }, { shippingOption: null })"> 31 If the requestShipping member is false, then shippingOption must be null. 32 </button> 33 </li> 34 <li> 35 <button onclick="runManualTest(this, { requestShipping: true }, { shippingOption: 'pass' }).then(done)"> 36 If the requestShipping member is true, then shippingOption must be the id of the selected shipping option ("pass"). 37 </button> 38 </li> 39 </ol> 40 <small> 41 If you find a buggy test, please <a href="https://github.com/web-platform-tests/wpt/issues">file a bug</a> 42 and tag one of the <a href="https://github.com/web-platform-tests/wpt/blob/master/payment-request/META.yml">suggested reviewers</a>. 43 </small>