| 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 00c45e1b9bb3ae03663bffe782b16d3cc1ba3cc8..1c3b1a24eee7719e04a72019b1ff595c04f96813 100644
|
| --- a/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
|
| +++ b/third_party/WebKit/LayoutTests/payments/payment-request-interface.html
|
| @@ -181,6 +181,10 @@ test(function() {
|
| });
|
| }, 'Absence of total should throw TypeError.');
|
|
|
| +promise_test(function(t) {
|
| + return promise_rejects(t, null, new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails()).abort());
|
| +}, 'abort() without show() should reject with error');
|
| +
|
| generate_tests(assert_throws, [
|
| ['PaymentRequest constructor should throw for incorrect parameter types.', null, function() {
|
| new PaymentRequest('', '', '')
|
| @@ -203,9 +207,6 @@ generate_tests(assert_throws, [
|
| ['Null shipping options should throw', new TypeError(), function() {
|
| new PaymentRequest([{'supportedMethods': ['foo']}], {'total': buildItem(), 'displayItems': [buildItem()], 'shippingOptions': null});
|
| }],
|
| - ['Aborting before showing should throw.', null, function() {
|
| - new PaymentRequest([{'supportedMethods': ['foo']}], buildDetails()).abort()
|
| - }],
|
|
|
| // Payment method specific data should be a JSON-serializable object.
|
| ['Array value for payment method specific data parameter should throw', null, function() {
|
|
|