diff options
author | tturchetto@google.com <tturchetto@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 00:11:15 +0000 |
---|---|---|
committer | tturchetto@google.com <tturchetto@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 00:11:15 +0000 |
commit | dd5dffc704cbae835844899713cbbddc3a1c5a80 (patch) | |
tree | 247b46f74ad0be89d1d6408daab3e4b520340347 /chrome/test | |
parent | f557d0358942fe5a66d55707f628c50e414015bf (diff) | |
download | chromium_src-dd5dffc704cbae835844899713cbbddc3a1c5a80.zip chromium_src-dd5dffc704cbae835844899713cbbddc3a1c5a80.tar.gz chromium_src-dd5dffc704cbae835844899713cbbddc3a1c5a80.tar.bz2 |
Adding profile pyauto test: loop all pictures
BUG=
TEST=This is a test for profile picture
Review URL: http://codereview.chromium.org/7818009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/functional/chromeos_prefs.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/test/functional/chromeos_prefs.py b/chrome/test/functional/chromeos_prefs.py index cb78676..f4c65f1 100644 --- a/chrome/test/functional/chromeos_prefs.py +++ b/chrome/test/functional/chromeos_prefs.py @@ -17,14 +17,15 @@ class ChromeosPrefsTest(pyauto.PyUITest): k_logged_in_users = 'LoggedInUsers' k_user_images = 'UserImages' - def testDefaultUserImage(self): - """Verify changing default user image prefs work.""" + def testAllUserImage(self): + """Verify changing all available default user images in Change picture.""" # Defined in src/chrome/browser/chromeos/login/default_user_images.cc - image1 = u'default:4' - image2 = u'default:5' + images = [] + for i in range(0, 19): + images.append(u'default:%d' % i) - for image in image1, image2: + for image in images: logged_in_user = \ self.GetLocalStatePrefsInfo().Prefs( ChromeosPrefsTest.k_logged_in_users)[0] |