| 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 aaf6dae84d67e2e622d75b9287bbbc75542c80a7..5e9a8312e9636db86760d39df97715108b7eea3c 100644
|
| --- a/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
|
| +++ b/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
|
| @@ -361,6 +361,15 @@
|
| }],
|
| ['Empty string for payment method specific data parameter should throw', null, function() {
|
| new PaymentRequest([{'supportedMethods': ['foo'], 'data': ''}], buildDetails())
|
| + }],
|
| + ['If details contains a null value for error, then throw a TypeError', new TypeError(), function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo']}], {'total': buildItem(), 'error': null})
|
| + }],
|
| + ['If details contains an empty string value for error, then throw a TypeError', new TypeError(), function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo']}], {'total': buildItem(), 'error': ''})
|
| + }],
|
| + ['If details contains a non-empty string value for error, then throw a TypeError', new TypeError(), function() {
|
| + new PaymentRequest([{'supportedMethods': ['foo']}], {'total': buildItem(), 'error': 'Message'})
|
| }]
|
| ]);
|
|
|
|
|