|
|
Created:
5 years, 3 months ago by Changwan Ryu Modified:
5 years, 3 months ago CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd a test for downloading a file in a new tab multiple times
BUG=481758
Committed: https://crrev.com/19fb587ecf290db2b6f3f0db2b59862f6766a4a2
Cr-Commit-Position: refs/heads/master@{#347889}
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : fixed equality #
Total comments: 4
Patch Set 4 : #Patch Set 5 : #Patch Set 6 : fix a failure when internet connection is off #Messages
Total messages: 19 (7 generated)
yfriedman@chromium.org changed reviewers: + yfriedman@chromium.org
https://codereview.chromium.org/1320323006/diff/20001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java (right): https://codereview.chromium.org/1320323006/diff/20001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:332: waitForNewTabToStabilize(2); This seems flaky. I'm not actually getting the confirm infobar when running the test. So sometimes this isn't able to stabilize. https://codereview.chromium.org/1320323006/diff/20001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:335: assertPollForInfoBarSize(1); I've never had this pass. It seems that the infobar isn't triggering. Is it possible that some dependencies are stubbed out so we don't see the codepath?
On 2015/09/03 21:25:52, Yaron wrote: > https://codereview.chromium.org/1320323006/diff/20001/chrome/android/javatest... > File > chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java > (right): > > https://codereview.chromium.org/1320323006/diff/20001/chrome/android/javatest... > chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:332: > waitForNewTabToStabilize(2); > This seems flaky. I'm not actually getting the confirm infobar when running the > test. So sometimes this isn't able to stabilize. > > https://codereview.chromium.org/1320323006/diff/20001/chrome/android/javatest... > chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:335: > assertPollForInfoBarSize(1); > I've never had this pass. It seems that the infobar isn't triggering. > > Is it possible that some dependencies are stubbed out so we don't see the > codepath? Fixed my mistake which I did while reformatting the CL. Please try again.
changwan@chromium.org changed reviewers: + qinmin@chromium.org
https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java (right): https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:318: assertTrue(waitForGetDownloadToFinish()); Actually this sometimes fails, probably for the same reason for the other tests that are marked @FlakyTest. When it fails, Android download manger does not even start. Qin, do you have any idea what is causing this?
lgtm https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java (right): https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:274: // Wait until we have two tabs first. This should be called before checking the active This comment seems out of place. Perhaps better in the caller? (or at least shouldn't refer to specific # of tabs)
https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java (right): https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:274: // Wait until we have two tabs first. This should be called before checking the active On 2015/09/04 13:30:50, Yaron wrote: > This comment seems out of place. Perhaps better in the caller? (or at least > shouldn't refer to specific # of tabs) Done.
The CQ bit was checked by changwan@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yfriedman@chromium.org Link to the patchset: https://codereview.chromium.org/1320323006/#ps60001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320323006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320323006/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_r...)
https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java (right): https://codereview.chromium.org/1320323006/diff/40001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java:318: assertTrue(waitForGetDownloadToFinish()); On 2015/09/04 08:31:24, Changwan Ryu wrote: > Actually this sometimes fails, probably for the same reason for the other tests > that are marked @FlakyTest. > > When it fails, Android download manger does not even start. > Qin, do you have any idea what is causing this? Actually, DownloadManager abandons download request when Internet connection is off, even though we are only downloading from a local host. This is probably the reason for the @FlakyTest labels in this file.
The CQ bit was checked by changwan@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yfriedman@chromium.org Link to the patchset: https://codereview.chromium.org/1320323006/#ps100001 (title: "fix a failure when internet connection is off")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320323006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320323006/100001
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/19fb587ecf290db2b6f3f0db2b59862f6766a4a2 Cr-Commit-Position: refs/heads/master@{#347889} |