-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update IDL for Payment Request and add a historical.html
Test update for w3c/payment-request#419 w3c/payment-request#426 w3c/payment-request#453
- Loading branch information
Showing
2 changed files
with
71 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>Historical Payment Request APIs</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script> | ||
[ | ||
// https://github.com/w3c/browser-payment-api/pull/419 | ||
["paymentRequestID", "PaymentRequest"], | ||
["paymentRequestID", "PaymentResponse"], | ||
|
||
// https://github.com/w3c/browser-payment-api/pull/258 | ||
["careOf", "PaymentAddress"], | ||
|
||
// https://github.com/w3c/browser-payment-api/pull/219 | ||
["totalAmount", "PaymentResponse"], | ||
|
||
// https://github.com/w3c/browser-payment-api/pull/426 | ||
["paymentRequestId", "PaymentRequest"], | ||
["paymentRequestId", "PaymentResponse"], | ||
|
||
].forEach(([member, interf]) => { | ||
test(() => { | ||
assert_false(member in window[interf].prototype); | ||
}, member + ' in ' + interf); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters