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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java

Issue 2496983003: Use native implementation of dangerous download infobar (Closed)
Patch Set: Created 4 years, 1 month 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: chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java
index 3137a8bd45bd5bb997b09ca8f838f19370fec7ad..22356c9fdd8be4cfd32d229034237590617aeba6 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java
@@ -105,36 +105,6 @@ public class DownloadTest extends DownloadTestBase {
@MediumTest
@Feature({"Downloads"})
@RetryOnFailure
- public void testDangerousDownloadCancel() throws Exception {
- loadUrl(mTestServer.getURL(TEST_DOWNLOAD_DIRECTORY + "dangerous.html"));
- waitForFocus();
- View currentView = getActivity().getActivityTab().getView();
- TouchCommon.longPressView(currentView);
-
- // Open in new tab so that the "CloseBlankTab" functionality is invoked later.
- getInstrumentation().invokeContextMenuAction(getActivity(),
- R.id.contextmenu_open_in_new_tab, 0);
-
- waitForNewTabToStabilize(2);
- goToLastTab();
- assertPollForInfoBarSize(1);
-
- assertTrue("Cancel button wasn't found",
- InfoBarUtil.clickSecondaryButton(getInfoBars().get(0)));
-
- // "Cancel" should close the blank tab opened for this download.
- CriteriaHelper.pollUiThread(
- Criteria.equals(1, new Callable<Integer>() {
- @Override
- public Integer call() {
- return getActivity().getCurrentTabModel().getCount();
- }
- }));
- }
-
- @MediumTest
- @Feature({"Downloads"})
- @RetryOnFailure
public void testHttpPostDownload() throws Exception {
loadUrl(mTestServer.getURL(TEST_DOWNLOAD_DIRECTORY + "post.html"));
waitForFocus();
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/download/ChromeDownloadDelegate.java ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698