diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 22:54:19 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 22:54:19 +0000 |
commit | 1ce00dca724d613cabe9bc5cc2a42946c4b7db07 (patch) | |
tree | 0115fa47d2614417dbb5d7d1a143f1e0f4634e3c /chrome/test/functional | |
parent | cba5a66cf16651683d1f487349adab1f28d251ce (diff) | |
download | chromium_src-1ce00dca724d613cabe9bc5cc2a42946c4b7db07.zip chromium_src-1ce00dca724d613cabe9bc5cc2a42946c4b7db07.tar.gz chromium_src-1ce00dca724d613cabe9bc5cc2a42946c4b7db07.tar.bz2 |
Clear leftover files in downloads tests.
BUG=
TEST=
Review URL: http://codereview.chromium.org/3233009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional')
-rw-r--r-- | chrome/test/functional/browsing_data.py | 1 | ||||
-rw-r--r-- | chrome/test/functional/downloads.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/chrome/test/functional/browsing_data.py b/chrome/test/functional/browsing_data.py index c5ead1a..c569807 100644 --- a/chrome/test/functional/browsing_data.py +++ b/chrome/test/functional/browsing_data.py @@ -25,6 +25,7 @@ class BrowsingDataTest(pyauto.PyUITest): os.path.exists(downloaded_pkg) and os.remove(downloaded_pkg) self.DownloadAndWaitForStart(file_url) self.WaitForAllDownloadsToComplete() + os.path.exists(downloaded_pkg) and os.remove(downloaded_pkg) def _GetURLForFile(self, file_name): """Returns the url for the file in the 'data' directory.""" diff --git a/chrome/test/functional/downloads.py b/chrome/test/functional/downloads.py index 5bccce2..5ec5484 100644 --- a/chrome/test/functional/downloads.py +++ b/chrome/test/functional/downloads.py @@ -179,6 +179,7 @@ class DownloadsTest(pyauto.PyUITest): # The download is removed from downloads, but not from the disk. self.assertFalse(self.GetDownloadsInfo().Downloads()) self.assertTrue(os.path.exists(downloaded_pkg)) + os.path.exists(downloaded_pkg) and os.remove(downloaded_pkg) def testBigZip(self): """Verify that we can download a 1GB file. |