mirror of
https://github.com/servo/servo.git
synced 2025-07-12 09:53:40 +01:00
14 lines
494 B
HTML
14 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>
|