| 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 3a65ab1713b09a53f3cd6c962ea3e0136fe5b260..f58060876c73338cf78273f84365af0323728fd5 100644
|
| --- a/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
|
| +++ b/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
|
| @@ -246,6 +246,18 @@ generate_tests(assert_throws, [
|
| ['Empty supported payment method identifiers should throw TypeError.', null, function() {
|
| new PaymentRequest([{'supportedMethods': []}], buildDetails())
|
| }],
|
| + ['Duplicate supported payment method identifiers should throw TypeError.', null, function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo', 'foo']}], buildDetails(), {})
|
| + }],
|
| + ['Duplicate supported payment method identifiers should throw TypeError.', null, function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo']}, {'supportedMethods': ['foo']}], buildDetails(), {})
|
| + }],
|
| + ['Duplicate supported payment method identifiers in modifiers should throw TypeError.', null, function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo']}], {'total': buildItem(), 'modifiers': [{'supportedMethods': ['foo', 'foo']}]})
|
| + }],
|
| + ['Duplicate supported payment method identifiers in modifiers should throw TypeError.', null, function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo']}], {'total': buildItem(), 'modifiers': [{'supportedMethods': ['foo']}, {'supportedMethods': ['foo']}]})
|
| + }],
|
| ['Empty details should throw', null, function() {
|
| new PaymentRequest([{'supportedMethods': ['foo']}], {})
|
| }],
|
|
|