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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBlobUrlTest.java

Issue 2859613002: Disable web payments API on blob: and data: schemes. (Closed)
Patch Set: Fix up Android test Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.payments;
6
7 import android.support.test.filters.MediumTest;
8
9 import org.chromium.base.test.util.Feature;
10
11 import java.util.concurrent.ExecutionException;
12 import java.util.concurrent.TimeoutException;
13
14 /** Web payments test for blob URL. */
15 public class PaymentRequestBlobUrlTest extends PaymentRequestTestBase {
16 public PaymentRequestBlobUrlTest() {
17 super("payment_request_blob_url_test.html");
18 }
19
20 @Override
21 public void onMainActivityStarted()
22 throws InterruptedException, ExecutionException, TimeoutException {}
23
24 @MediumTest
25 @Feature({"Payments"})
26 public void test() throws InterruptedException, ExecutionException, TimeoutE xception {
27 openPageAndClickNode("buy");
28 assertWaitForPageScaleFactorMatch(2);
29 expectResultContains(new String[] {"SecurityError: Failed to construct ' PaymentRequest': "
30 + "Must be in a secure context"});
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698