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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp

Issue 2072963002: Remove PaymentResponse.totalAmount according to latest spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final touch-up Created 4 years, 6 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/Source/modules/payments/PaymentResponseTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
index 577877f79d521192779a3ad53b1733a40ae91b36..35da551475c3540bd99e0d0fd453386bf6539029 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
@@ -45,8 +45,6 @@ TEST(PaymentResponseTest, DataCopiedOver)
V8TestingScope scope;
mojom::blink::PaymentResponsePtr input = buildPaymentResponseForTest();
input->method_name = "foo";
- input->total_amount->currency = "USD";
- input->total_amount->value = "5.00";
input->stringified_details = "{\"transactionId\": 123}";
input->shipping_option = "standardShippingOption";
input->payer_email = "abc@gmail.com";
@@ -60,11 +58,6 @@ TEST(PaymentResponseTest, DataCopiedOver)
EXPECT_EQ("abc@gmail.com", output.payerEmail());
EXPECT_EQ("0123", output.payerPhone());
- PaymentCurrencyAmount totalAmount;
- output.totalAmount(totalAmount);
- EXPECT_EQ("USD", totalAmount.currency());
- EXPECT_EQ("5.00", totalAmount.value());
-
ScriptValue details = output.details(scope.getScriptState(), scope.getExceptionState());
ASSERT_FALSE(scope.getExceptionState().hadException());

Powered by Google App Engine
This is Rietveld 408576698