diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 18:44:33 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 18:44:33 +0000 |
commit | 9f043377e0fa22c46a45054bfcead621afe27af5 (patch) | |
tree | ea579d683421761776cc1abff626ffba1f59ac19 | |
parent | a5ebb3325086db43736380cf62f1d3aae80f5102 (diff) | |
download | chromium_src-9f043377e0fa22c46a45054bfcead621afe27af5.zip chromium_src-9f043377e0fa22c46a45054bfcead621afe27af5.tar.gz chromium_src-9f043377e0fa22c46a45054bfcead621afe27af5.tar.bz2 |
Fix a theme test
Fix a theme test by using absolute path to the theme file.
Review URL: http://codereview.chromium.org/2861056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52709 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/test/functional/themes.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/test/functional/themes.py b/chrome/test/functional/themes.py index 855e85d..980c5f6 100644 --- a/chrome/test/functional/themes.py +++ b/chrome/test/functional/themes.py @@ -26,7 +26,8 @@ class ThemesTest(pyauto.PyUITest): def testSetTheme(self): """Verify theme install.""" self.assertFalse(self.GetThemeInfo()) # Verify there's no theme at startup - crx_file = os.path.join(self.DataDir(), 'extensions', 'theme.crx') + crx_file = os.path.abspath( + os.path.join(self.DataDir(), 'extensions', 'theme.crx')) self.assertTrue(self.SetTheme(pyauto.FilePath(crx_file))) theme = self.GetThemeInfo() self.assertEqual('camo theme', theme['name']) @@ -34,7 +35,8 @@ class ThemesTest(pyauto.PyUITest): def testThemeReset(self): """Verify theme reset.""" - crx_file = os.path.join(self.DataDir(), 'extensions', 'theme.crx') + crx_file = os.path.abspath( + os.path.join(self.DataDir(), 'extensions', 'theme.crx')) self.assertTrue(self.SetTheme(pyauto.FilePath(crx_file))) self.assertTrue(self.ResetToDefaultTheme()) self.assertFalse(self.GetThemeInfo()) |