-
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.
Remove tests for supportedTypes from basic-card (#13859)
* Remove tests for supportedTypes from basic-card * Add historical check for supportedType * Update payment-method-basic-card/empty-data-manual.https.html Co-Authored-By: marcoscaceres <[email protected]> * Update payment-method-basic-card/empty-data-manual.https.html Co-Authored-By: marcoscaceres <[email protected]>
- Loading branch information
1 parent
5d4871b
commit fb15e14
Showing
2 changed files
with
28 additions
and
13 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
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,25 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>Historical Basic Card Changes</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script> | ||
// https://github.com/w3c/payment-method-basic-card/pull/62 | ||
test(() => { | ||
try { | ||
new PaymentRequest( | ||
[ | ||
{ | ||
supportedMethods: "basic-card", | ||
supportedTypes: [ | ||
"this was an enum value once - so this would have thrown", | ||
], | ||
}, | ||
], | ||
{ total: { label: "bar", amount: { currency: "BAZ", value: "0" } } } | ||
); | ||
} catch (err) { | ||
assert_unreached("Unexpected error"); | ||
} | ||
}, "supportedTypes and BasicCardType enum were removed from the spec"); | ||
</script> |