diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 18:05:15 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 18:05:15 +0000 |
commit | 04e88dd82f2c400fa7736eb9416fbd302e2d8e20 (patch) | |
tree | 8c7baf8ebd218ce4036270b182ef5915a111178f | |
parent | b73e6dde2d0ec0bf320c1498fe843997e65e18aa (diff) | |
download | chromium_src-04e88dd82f2c400fa7736eb9416fbd302e2d8e20.zip chromium_src-04e88dd82f2c400fa7736eb9416fbd302e2d8e20.tar.gz chromium_src-04e88dd82f2c400fa7736eb9416fbd302e2d8e20.tar.bz2 |
Add some logging to pyauto downloads test testNoUnsafeDownloadsOnRestart.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6303020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73303 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/test/functional/downloads.py | 8 |
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. |