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

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

Issue 7548024: Refactor: Make PyAuto InstallExtension() take a string. Delete dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixup per kkania. Created 9 years, 5 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/ntp.py ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/themes.py
diff --git a/chrome/test/functional/themes.py b/chrome/test/functional/themes.py
index 5ae904fbf20f993c1b44124d0a90d35af8dcd13a..298eec64ebd709148744b9590e69b14225069c1d 100644
--- a/chrome/test/functional/themes.py
+++ b/chrome/test/functional/themes.py
@@ -30,7 +30,7 @@ class ThemesTest(pyauto.PyUITest):
self.assertFalse(self.GetThemeInfo()) # Verify there's no theme at startup
crx_file = os.path.abspath(
os.path.join(self.DataDir(), 'extensions', 'theme.crx'))
- self.assertTrue(self.SetTheme(pyauto.FilePath(crx_file)))
+ self.assertTrue(self.SetTheme(crx_file))
# Verify "theme installed" infobar shows up
self.assertTrue(self.WaitForInfobarCount(1))
theme = self.GetThemeInfo()
@@ -43,7 +43,7 @@ class ThemesTest(pyauto.PyUITest):
self.assertFalse(self.GetThemeInfo()) # Verify there's no theme at startup
crx_file = os.path.abspath(
os.path.join(self.DataDir(), 'extensions', 'theme.crx'))
- self.assertTrue(self.SetTheme(pyauto.FilePath(crx_file)))
+ self.assertTrue(self.SetTheme(crx_file))
# Verify "theme installed" infobar shows up
self.assertTrue(self.WaitForInfobarCount(1))
theme = self.GetThemeInfo()
@@ -53,7 +53,7 @@ class ThemesTest(pyauto.PyUITest):
"""Verify theme reset."""
crx_file = os.path.abspath(
os.path.join(self.DataDir(), 'extensions', 'theme.crx'))
- self.assertTrue(self.SetTheme(pyauto.FilePath(crx_file)))
+ self.assertTrue(self.SetTheme(crx_file))
self.assertTrue(self.ResetToDefaultTheme())
self.assertFalse(self.GetThemeInfo())
@@ -80,7 +80,7 @@ class ThemesTest(pyauto.PyUITest):
# Apply each theme in this group.
for theme in this_group:
logging.debug('Applying theme: %s' % theme)
- self.assertTrue(self.SetTheme(pyauto.FilePath(theme)),
+ self.assertTrue(self.SetTheme(theme),
'Theme %s not installed.' % theme)
for url in urls:
@@ -138,4 +138,3 @@ class ThemesTest(pyauto.PyUITest):
if __name__ == '__main__':
pyauto_functional.Main()
-
« no previous file with comments | « chrome/test/functional/ntp.py ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698