Revision 28d63f19babbd14a18a0219acf21362fc5d52dbc authored by Henrik Skupin on 28 March 2018, 18:49:31 UTC, committed by moz-wptsync-bot on 28 March 2018, 18:49:31 UTC
To retrieve links via "link text" or "partial link text" the rendered
content of the element has to be used. This can be the case for CSS
transformations like "uppercase".
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1381519
gecko-commit: 3e204686f1b10441f48435890241dff6706d04dd
gecko-integration-branch: central
gecko-reviewers: ato
1 parent f5b48cf
Raw File
payerName-attribute-manual.https.html
<!doctype html>
<meta charset="utf8">
<link rel="help" href="https://w3c.github.io/payment-request/#dom-paymentresponse-payername">
<title>
  PaymentResponse.prototype.payerName attribute
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="helpers.js"></script>
<h2>payerName attribute</h2>
<p>
  Click on each button in sequence from top to bottom without refreshing the page.
  Each button will bring up the Payment Request UI window.
</p>
<p>
  When requested, please use "web platform test" as the payer name.
</p>
<ol>
  <li>
    <button onclick="runManualTest(this, undefined, { payerName: null })">
      payerName attribute is null when option is undefined.
    </button>
  </li>
  <li>
    <button onclick="runManualTest(this, { requestPayerName: undefined }, { payerName: null })">
      payerName attribute is null when requestPayerName is undefined.
    </button>
  </li>
  <li>
    <button onclick="runManualTest(this, { requestPayerName: false }, { payerName: null })">
      payerName attribute is null when requestPayerName is false.
    </button>
  </li>
  <li>
    <button onclick="runManualTest(this, { requestPayerName: true }, { payerName: 'web platform test' })">
      payerName attribute is 'web platform test' when requestPayerName is true.
    </button>
  </li>
  <li>
    <button onclick="runManualTest(this, { requestPayerName: 'yep' }, { payerName: 'web platform test' }).then(done)">
      payerName attribute is 'web platform test' when requestPayerName is truthy.
    </button>
  </li>
</ol>
<small>
  If you find a buggy test, please <a href="https://github.com/w3c/web-platform-tests/issues">file a bug</a>
  and tag one of the <a href="https://github.com/w3c/web-platform-tests/blob/master/payment-request/OWNERS">owners</a>.
</small>
back to top