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

Unified Diff: chrome/test/chromedriver/util.py

Issue 137423013: [chromedriver] Enable a java test and fix binary path like "~/chrome". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/chromedriver/test/test_expectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/util.py
diff --git a/chrome/test/chromedriver/util.py b/chrome/test/chromedriver/util.py
index b28502af483216d8c65e85310d0e55c2db5383e5..dc862d3e96db521194b07353619472e087697d08 100644
--- a/chrome/test/chromedriver/util.py
+++ b/chrome/test/chromedriver/util.py
@@ -39,6 +39,14 @@ def IsMac():
return sys.platform.startswith('darwin')
+def GetAbsolutePathOfUserPath(user_path):
+ """Expand the given |user_path| (like "~/file") and return its absolute path.
+ """
+ if not user_path:
craigdh 2014/01/29 18:47:35 The empty string will cause this to return None. I
stgao 2014/01/29 19:40:27 Nice catch. Done.
+ return None
+ return os.path.abspath(os.path.expanduser(user_path))
+
+
def _DeleteDir(path):
"""Deletes a directory recursively, which must exist."""
# Don't use shutil.rmtree because it can't delete read-only files on Win.
« no previous file with comments | « chrome/test/chromedriver/test/test_expectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698