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

Unified Diff: chrome/test/functional/downloads.py

Issue 11711003: Remove the DownloadItem::TogglePause() interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r175145. Created 7 years, 12 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/browser/ui/webui/downloads_dom_handler.cc ('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/functional/downloads.py
diff --git a/chrome/test/functional/downloads.py b/chrome/test/functional/downloads.py
index fd8b6dbb1c3ee26b4d7ba27cec90e8ebbc457674..e94c1c64b10adabe33157d9c7e69e8a5e61e243f 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);
« no previous file with comments | « chrome/browser/ui/webui/downloads_dom_handler.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698