Index: third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp |
index b52a250a60f8acc548eb622cb5338667a745b4cd..c7d0851ad2da4369d9de7492a400e04504d3f984 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp |
@@ -631,5 +631,19 @@ TEST(PaymentRequestTest, |
EXPECT_TRUE(request->shippingOption().IsNull()); |
} |
+TEST(PaymentRequestTest, DetailsIdIsSet) { |
+ V8TestingScope scope; |
+ MakePaymentRequestOriginSecure(scope.GetDocument()); |
+ PaymentDetailsInit details; |
+ details.setTotal(BuildPaymentItemForTest()); |
+ details.setId("my_payment_id"); |
+ |
+ PaymentRequest* request = PaymentRequest::Create( |
+ scope.GetExecutionContext(), BuildPaymentMethodDataForTest(), details, |
+ scope.GetExceptionState()); |
+ |
+ EXPECT_EQ("my_payment_id", request->id()); |
+} |
+ |
} // namespace |
} // namespace blink |