Skip to content

Commit

Permalink
Revert "Remove PaymentAddress.regionCode tests" (#15501)
Browse files Browse the repository at this point in the history
Bring back PaymentAddress.regionCode for Payment Request API 1.1.

This reverts commit 4b7ad2a.
  • Loading branch information
Marcos Cáceres authored Apr 8, 2020
1 parent e7fe387 commit 8f95d59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ <h2>PaymentAddress interface</h2>
<button onclick="
const expectedAddress = {
country: 'AU',
regionCode: 'QLD',
addressLine: '55 test st',
city: 'Chapel Hill',
dependentLocality: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ <h2>
The payment sheet shows "REGION ERROR" for the shipping address' region.
</button>
</li>
<li>
<button onclick="retryShowsShippingAddressMember(this, { regionCode: 'REGIONCODE ERROR' });">
The payment sheet shows "REGIONCODE ERROR" for the shipping address' region code.
</button>
</li>
<li>
<button onclick="retryShowsShippingAddressMember(this, { sortingCode: 'SORTINGCODE ERROR' });">
The payment sheet shows "SORTINGCODE ERROR" for the shipping address' sorting code.
Expand Down
3 changes: 0 additions & 3 deletions payment-request/historical.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

// https://github.com/w3c/payment-request/pull/765
["languageCode", "PaymentAddress"],

// https://github.com/w3c/payment-request/pull/823
["regionCode", "PaymentAddress"],
].forEach(([member, interf]) => {
test(() => {
assert_false(member in window[interf].prototype);
Expand Down

0 comments on commit 8f95d59

Please sign in to comment.