summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/downloads.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/functional/downloads.py')
-rw-r--r--chrome/test/functional/downloads.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/test/functional/downloads.py b/chrome/test/functional/downloads.py
index ceadd88..61ecaa0 100644
--- a/chrome/test/functional/downloads.py
+++ b/chrome/test/functional/downloads.py
@@ -335,12 +335,18 @@ class DownloadsTest(pyauto.PyUITest):
self._ClearLocalDownloadState(downloaded_pkg)
self._TriggerUnsafeDownload(os.path.basename(file_path))
self.assertTrue(self.IsDownloadShelfVisible())
+ current_downloads = self.GetDownloadsInfo().Downloads()
# Restart the browser and assert that the download was removed.
self.RestartBrowser(clear_profile=False)
self.assertFalse(os.path.exists(downloaded_pkg))
self.assertFalse(self.IsDownloadShelfVisible())
self.NavigateToURL("chrome://downloads")
- self.assertFalse(self.GetDownloadsInfo().Downloads())
+ new_downloads = self.GetDownloadsInfo().Downloads()
+ if new_downloads:
+ logging.info('Dangerous unconfirmed download survived restart.')
+ logging.info('Old downloads list: %s' % current_downloads)
+ logging.info('New downloads list: %s' % new_downloads)
+ self.assertFalse(new_downloads)
def testPauseAndResume(self):
"""Verify that pause and resume work while downloading a file.