diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-07 18:03:18 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-07 18:03:18 +0000 |
commit | f9dcbcf7868199173371811eb225e0be00b35d5a (patch) | |
tree | b63cc4b62a94f0d57488fd84bfe043a02b5a24b5 /chrome/test/functional | |
parent | a4203e70ffa968820844800bbf7aa0b71bf02c36 (diff) | |
download | chromium_src-f9dcbcf7868199173371811eb225e0be00b35d5a.zip chromium_src-f9dcbcf7868199173371811eb225e0be00b35d5a.tar.gz chromium_src-f9dcbcf7868199173371811eb225e0be00b35d5a.tar.bz2 |
Remove the DownloadItem::TogglePause() interface.
Replace it with explict Pause() and Resume() interfaces.
R=asanka@chromium.org
R=benjhayden@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11711003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional')
-rwxr-xr-x | chrome/test/functional/downloads.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/test/functional/downloads.py b/chrome/test/functional/downloads.py index fd8b6db..e94c1c6 100755 --- a/chrome/test/functional/downloads.py +++ b/chrome/test/functional/downloads.py @@ -358,8 +358,7 @@ class DownloadsTest(pyauto.PyUITest): self._DeleteAfterShutdown(file_path) # Pause the download and assert that it is paused. - pause_dict = self.PerformActionOnDownload(self._GetDownloadId(), - 'toggle_pause') + pause_dict = self.PerformActionOnDownload(self._GetDownloadId(), 'pause') if pause_dict['state'] == 'COMPLETE': logging.info('The download completed before pause. Stopping test.') return @@ -368,8 +367,7 @@ class DownloadsTest(pyauto.PyUITest): self.assertTrue(pause_dict['state'] == 'IN_PROGRESS') # Resume the download and assert it is not paused. - resume_dict = self.PerformActionOnDownload(self._GetDownloadId(), - 'toggle_pause') + resume_dict = self.PerformActionOnDownload(self._GetDownloadId(), 'resume') self.assertFalse(resume_dict['is_paused']) self.WaitForAllDownloadsToComplete(timeout=10 * 60 * 1000); |