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

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

Issue 2541663003: Remove [ConstructorCallWith=ScriptState] from Payments (Closed)
Patch Set: temp Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/ActivePaymentTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/AbortTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/AbortTest.cpp b/third_party/WebKit/Source/modules/payments/AbortTest.cpp
index 532450ef03df97143bee28e6d1b569cfce0a2e71..44bd1b5c7e7875092c6eaa950f928f4702494b30 100644
--- a/third_party/WebKit/Source/modules/payments/AbortTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/AbortTest.cpp
@@ -19,7 +19,7 @@ TEST(AbortTest, CannotAbortBeforeShow) {
PaymentRequestMockFunctionScope funcs(scope.getScriptState());
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
- scope.getScriptState(), buildPaymentMethodDataForTest(),
+ scope.document(), buildPaymentMethodDataForTest(),
buildPaymentDetailsForTest(), scope.getExceptionState());
request->abort(scope.getScriptState())
@@ -33,7 +33,7 @@ TEST(AbortTest, CannotAbortTwiceConcurrently) {
PaymentRequestMockFunctionScope funcs(scope.getScriptState());
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
- scope.getScriptState(), buildPaymentMethodDataForTest(),
+ scope.document(), buildPaymentMethodDataForTest(),
buildPaymentDetailsForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
request->abort(scope.getScriptState());
@@ -49,7 +49,7 @@ TEST(AbortTest, CanAbortAfterShow) {
PaymentRequestMockFunctionScope funcs(scope.getScriptState());
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
- scope.getScriptState(), buildPaymentMethodDataForTest(),
+ scope.document(), buildPaymentMethodDataForTest(),
buildPaymentDetailsForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
@@ -64,7 +64,7 @@ TEST(AbortTest, FailedAbortShouldRejectAbortPromise) {
PaymentRequestMockFunctionScope funcs(scope.getScriptState());
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
- scope.getScriptState(), buildPaymentMethodDataForTest(),
+ scope.document(), buildPaymentMethodDataForTest(),
buildPaymentDetailsForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
@@ -82,7 +82,7 @@ TEST(AbortTest, CanAbortAgainAfterFirstAbortRejected) {
PaymentRequestMockFunctionScope funcs(scope.getScriptState());
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
- scope.getScriptState(), buildPaymentMethodDataForTest(),
+ scope.document(), buildPaymentMethodDataForTest(),
buildPaymentDetailsForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
request->abort(scope.getScriptState());
@@ -100,7 +100,7 @@ TEST(AbortTest, SuccessfulAbortShouldRejectShowPromiseAndResolveAbortPromise) {
PaymentRequestMockFunctionScope funcs(scope.getScriptState());
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
- scope.getScriptState(), buildPaymentMethodDataForTest(),
+ scope.document(), buildPaymentMethodDataForTest(),
buildPaymentDetailsForTest(), scope.getExceptionState());
request->show(scope.getScriptState())
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/ActivePaymentTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698