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

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

Issue 2779013002: Revert of PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate. (Closed)
Patch Set: Created 3 years, 9 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 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'})
}]
]);
« no previous file with comments | « components/payments/content/payment_request.mojom ('k') | third_party/WebKit/Source/modules/modules_idl_files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698