blob: 851f4ed42de5c99d32d323bf28ca195ed835c0f8 [file] [log] [blame]
<!doctype html>
<meta charset="utf8">
<link rel="help" href="https://w3c.github.io/payment-request/#dom-paymentresponse-methodname">
<title>
PaymentResponse.prototype.methodName attribute
</title>
<script src="/js-test-resources/ui-helper.js"></script>
<script src="/resources/payment-request.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/helpers.js"></script>
<script>
setUpAndSmokeTest({ explicit_done: true, explicit_timeout: true });
</script>
<ol>
<li>
<button id="button">
Expect the payment method identifier to be 'https://apple.com/apple-pay'.
</button>
</li>
</ol>
<script>
runTest(document.getElementById("button"), {}, { methodName: 'https://apple.com/apple-pay' }).then(done);
</script>