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

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

Issue 2271113002: Accept any string for currency code in PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow null as per spec Created 4 years, 4 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 670f291bc40cd0322cd2fb8281e56c03f1d4e48f..d1c6c7d1639e78cc87939899dfffc5c3e2b11fdd 100644
--- a/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
+++ b/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
@@ -275,24 +275,6 @@ var detailNames = ['total', 'displayItems.0', 'shippingOptions.0', 'modifiers.0.
for (var i in detailNames) {
generate_tests(assert_throws, [
// Invalid currency code formats.
- ['Invalid currency code US1 should throw', null, function() {
- new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': 'US1'}))
- }],
- ['Invalid currency code US should throw', null, function() {
- new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': 'US'}))
- }],
- ['Invalid currency code USDO should throw', null, function() {
- new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': 'USDO'}))
- }],
- ['Invalid currency code usd should throw', null, function() {
- new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': 'usd'}))
- }],
- ['Empty currency code should throw', null, function() {
- new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': ''}))
- }],
- ['Null currency code should throw', null, function() {
- new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': null}))
- }],
['Undefined currency code should throw', null, function() {
new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails(detailNames[i], {'currency': undefined}))
}],

Powered by Google App Engine
This is Rietveld 408576698