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

Unified Diff: chrome/test/pyautolib/download_info.py

Issue 7544026: Fix for flakiness in pyauto automation hook WaitForDownloadsToComplete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk; awaiting green trybots. Created 9 years, 4 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
« no previous file with comments | « chrome/test/functional/translate.py ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/download_info.py
diff --git a/chrome/test/pyautolib/download_info.py b/chrome/test/pyautolib/download_info.py
index e01fdac69002cfe1cb227f718875d63c8a796420..9c8ff01023b1cce1df2f6c0b12b600c3853cca3f 100644
--- a/chrome/test/pyautolib/download_info.py
+++ b/chrome/test/pyautolib/download_info.py
@@ -10,8 +10,8 @@ Obtain one of these from PyUITestSuite::GetDownloadsInfo() call.
class MyDownloadsTest(pyauto.PyUITest):
def testDownload(self):
- self.NavigateToURL('http://my.url/package.zip')
- self.WaitForDownloadsToComplete()
+ self.DownloadAndWaitForStart('http://my.url/package.zip')
+ self.WaitForAllDownloadsToComplete()
info = self.GetDownloadsInfo()
print info.Downloads()
self.assertEqual(info.Downloads()[0]['file_name'], 'packge.zip')
« no previous file with comments | « chrome/test/functional/translate.py ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698