mirror of
https://github.com/servo/servo
synced 2026-05-11 17:37:21 +02:00
15 lines
494 B
HTML
15 lines
494 B
HTML
<!doctype html>
|
|
<title>PaymentRequest <iframe allowpaymentrequest> basic</title>
|
|
<script src=/resources/testharness.js></script>
|
|
<script src=/resources/testharnessreport.js></script>
|
|
<iframe id="iframe" allowpaymentrequest></iframe>
|
|
<script>
|
|
async_test((t) => {
|
|
const paymentArgs = [[{supportedMethods: 'foo'}], {total: {label: 'label', amount: {currency: 'USD', value: '5.00'}}}];
|
|
|
|
onload = t.step_func_done(() => {
|
|
new window[0].PaymentRequest(...paymentArgs);
|
|
});
|
|
});
|
|
</script>
|