summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/payment-request/payment-response/onpayerdetailchange-attribute.https.html
blob: ed9e6e885b842ae18c5f87f9992d0c9a9cb6401a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<meta charset=utf-8>
<title>PaymentResponse.prototype.onpayerdetailschange attribute</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
test(() => {
  assert_equals(Object.getPrototypeOf(PaymentResponse), window.EventTarget);
}, "PaymentResponse inherits from EventTarget");

test(() => {
  assert_true("onpayerdetailchange" in PaymentResponse.prototype);
}, "PaymentResponse has an onpayerdetailchange in the prototype chain");
</script>