Commit 70c7f415 authored by aocampo@chromium.org's avatar aocampo@chromium.org

Use the pyauto API to get the default download directory since XP has a

different path.

BUG=NONE

Review URL: http://codereview.chromium.org/7558006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95894 0039d316-1c4b-4281-b951-d872f2087c98
parent 805b051b
...@@ -543,7 +543,7 @@ class EnterpriseTestReverse(pyauto.PyUITest): ...@@ -543,7 +543,7 @@ class EnterpriseTestReverse(pyauto.PyUITest):
if self.GetBrowserInfo()['properties']['branding'] != 'Google Chrome': if self.GetBrowserInfo()['properties']['branding'] != 'Google Chrome':
return return
if self.IsWin(): if self.IsWin():
download_default_dir = os.path.join(os.getenv('USERPROFILE'),'Downloads') download_default_dir = self.GetDownloadDirectory().value()
self.assertEqual(download_default_dir, self.assertEqual(download_default_dir,
self.GetPrefsInfo().Prefs()['download']['default_directory'], self.GetPrefsInfo().Prefs()['download']['default_directory'],
msg='Downloads directory is not set correctly.') msg='Downloads directory is not set correctly.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment