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 617fa7d3a5a512a3cf5bc1a5c39e652a19a32b94..f0fb4048acc27cee6a401772abc4dca0869fd18b 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp |
@@ -332,7 +332,7 @@ TEST(PaymentRequestTest, RejectShowPromiseOnUpdateDetailsFailure) |
String errorMessage; |
request->show(scope.getScriptState()).then(funcs.expectNoCall(), funcs.expectCall(&errorMessage)); |
- request->onUpdatePaymentDetailsFailure(ScriptValue::from(scope.getScriptState(), "oops")); |
+ request->onUpdatePaymentDetailsFailure("oops"); |
v8::MicrotasksScope::PerformCheckpoint(scope.getScriptState()->isolate()); |
EXPECT_EQ("AbortError: oops", errorMessage); |
@@ -351,7 +351,7 @@ TEST(PaymentRequestTest, RejectCompletePromiseOnUpdateDetailsFailure) |
String errorMessage; |
request->complete(scope.getScriptState(), Success).then(funcs.expectNoCall(), funcs.expectCall(&errorMessage)); |
- request->onUpdatePaymentDetailsFailure(ScriptValue::from(scope.getScriptState(), "oops")); |
+ request->onUpdatePaymentDetailsFailure("oops"); |
v8::MicrotasksScope::PerformCheckpoint(scope.getScriptState()->isolate()); |
EXPECT_EQ("AbortError: oops", errorMessage); |