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

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

Issue 2697123003: Use ExecutionContext instead of Document in PaymentRequest constructor. (Closed)
Patch Set: Created 3 years, 10 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/PaymentRequestDetailsTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
index dc0b5694e88ffe229d4603f71f7ee4c7b5d3db23..374e6b776ddedc167ac648020b27dea2be649a30 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
@@ -132,9 +132,9 @@ TEST_P(PaymentRequestDetailsTest, ValidatesDetails) {
SecurityOrigin::create(KURL(KURL(), "https://www.example.com/")));
PaymentOptions options;
options.setRequestShipping(true);
- PaymentRequest::create(scope.document(), buildPaymentMethodDataForTest(),
- GetParam().buildDetails(), options,
- scope.getExceptionState());
+ PaymentRequest::create(
+ scope.getScriptState(), buildPaymentMethodDataForTest(),
+ GetParam().buildDetails(), options, scope.getExceptionState());
EXPECT_EQ(GetParam().expectException(),
scope.getExceptionState().hadException());

Powered by Google App Engine
This is Rietveld 408576698