Index: third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
index 06d31586667bd907e6a671fe9e07bc8dd57e4353..aae0339c5463103feda553c7ed6777ec1623099b 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
@@ -28,6 +28,15 @@ void setValues(PaymentItemOrPaymentShippingOption& original, |
} else { |
itemAmount.setCurrency("USD"); |
} |
+ |
+ // Currency system is "urn:iso:std:iso:4217" by default. |
+ if (data == PaymentTestDataCurrencySystem) { |
+ if (modificationType == PaymentTestOverwriteValue) |
+ itemAmount.setCurrencySystem(valueToUse); |
+ else |
+ itemAmount.setCurrencySystem(String()); // null string. |
+ } |
+ |
if (data == PaymentTestDataValue) { |
if (modificationType == PaymentTestOverwriteValue) |
itemAmount.setValue(valueToUse); |