Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: third_party/WebKit/LayoutTests/payments/payment-request-interface.html

Issue 1981903002: PaymentRequest: Rename 'currencyCode' to 'currency' in CurrencyAmount.idl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/payments/payment-request-interface.html
diff --git a/third_party/WebKit/LayoutTests/payments/payment-request-interface.html b/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
index c64c202a3ccba9e214c637c7d252524c567871c3..c86077723b2b9a665513c21c57e1cf35f6b7a2bf 100644
--- a/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
+++ b/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
@@ -13,7 +13,7 @@ function substitute(originalObject, substituteKeyValuePair) {
}
function buildItem(optionalSubstituteKeyValuePair) {
- var item = {'id': 'item_id', 'label': 'Item Description', 'amount': {'currencyCode': 'USD', 'value': '10.00'}};
+ var item = {'id': 'item_id', 'label': 'Item Description', 'amount': {'currency': 'USD', 'value': '10.00'}};
if (optionalSubstituteKeyValuePair) {
substitute(item, optionalSubstituteKeyValuePair);
@@ -173,25 +173,25 @@ for (var i in detailNames) {
generate_tests(assert_throws, [
// Invalid currency code formats.
['Invalid currency code US1 should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': 'US1'}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': 'US1'}))
}],
['Invalid currency code US should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': 'US'}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': 'US'}))
}],
['Invalid currency code USDO should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': 'USDO'}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': 'USDO'}))
}],
['Invalid currency code usd should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': 'usd'}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': 'usd'}))
}],
['Empty currency code should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': ''}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': ''}))
}],
['Null currency code should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': null}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': null}))
}],
['Undefined currency code should throw', null, function() {
- new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currencyCode': undefined}))
+ new PaymentRequest(['foo'], buildDetails(detailNames[i], {'currency': undefined}))
}],
// Invalid amount formats.

Powered by Google App Engine
This is Rietveld 408576698