tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

payerName-attribute-manual.https.html (1861B)


      1 <!doctype html>
      2 <meta charset="utf8">
      3 <link rel="help" href="https://w3c.github.io/payment-request/#dom-paymentresponse-payername">
      4 <title>
      5  PaymentResponse.prototype.payerName 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>payerName 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 requested, please use "web platform test" as the payer name.
     17 </p>
     18 <ol>
     19  <li>
     20    <button onclick="runManualTest(this, undefined, { payerName: null })">
     21      payerName attribute is null when option is undefined.
     22    </button>
     23  </li>
     24  <li>
     25    <button onclick="runManualTest(this, { requestPayerName: undefined }, { payerName: null })">
     26      payerName attribute is null when requestPayerName is undefined.
     27    </button>
     28  </li>
     29  <li>
     30    <button onclick="runManualTest(this, { requestPayerName: false }, { payerName: null })">
     31      payerName attribute is null when requestPayerName is false.
     32    </button>
     33  </li>
     34  <li>
     35    <button onclick="runManualTest(this, { requestPayerName: true }, { payerName: 'web platform test' })">
     36      payerName attribute is 'web platform test' when requestPayerName is true.
     37    </button>
     38  </li>
     39  <li>
     40    <button onclick="runManualTest(this, { requestPayerName: 'yep' }, { payerName: 'web platform test' }).then(done)">
     41      payerName attribute is 'web platform test' when requestPayerName is truthy.
     42    </button>
     43  </li>
     44 </ol>
     45 <small>
     46  If you find a buggy test, please <a href="https://github.com/web-platform-tests/wpt/issues">file a bug</a>
     47  and tag one of the <a href="https://github.com/web-platform-tests/wpt/blob/master/payment-request/META.yml">suggested reviewers</a>.
     48 </small>