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

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

Issue 10823419: Fix chromeos_file_browser.ChromeosFileBrowserTest.testOpenMediaFiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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/test/functional/chromeos_file_browser.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/test_utils.py
diff --git a/chrome/test/functional/test_utils.py b/chrome/test/functional/test_utils.py
index 6cee67b97346ed3125d7efe34596f415430f530e..43e4cc430b13841f4918a044e03dbd290bcee793 100644
--- a/chrome/test/functional/test_utils.py
+++ b/chrome/test/functional/test_utils.py
@@ -44,6 +44,19 @@ def CopyFileFromDataDirToDownloadDir(test, file_path):
download_dir = test.GetDownloadDirectory().value()
shutil.copy(data_file, download_dir)
+
+def CopyFileFromContentDataDirToDownloadDir(test, file_path):
+ """Copy a file from content data directory to downloads directory.
+
+ Args:
+ test: derived from pyauto.PyUITest - base class for UI test cases.
+ path: path of the file relative to the data directory
+ """
+ data_file = os.path.join(test.ContentDataDir(), file_path)
+ download_dir = test.GetDownloadDirectory().value()
+ shutil.copy(data_file, download_dir)
+
+
def DownloadFileFromDownloadsDataDir(test, file_name):
"""Download a file from downloads data directory, in first tab, first window.
« no previous file with comments | « chrome/test/functional/chromeos_file_browser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698