OLD | NEW |
(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 } |
OLD | NEW |