Lines Matching full:profile
13 """Tests for Multi-Profile / Multi-users"""
69 """Create new profile and set home page.
83 """Create new profile and set home page.
108 def _AssertStartUpPage(self, url, profile='Default'):
109 """Asserts start up page for given profile.
113 profile: The profile name, defaults to 'Default'.
115 self.AppendBrowserLaunchSwitch('--profile-directory=' + profile)
122 def _AssertHomePage(self, url, profile='Default'):
123 """Asserts home page for given profile.
127 profile: The profile name, defaults to 'Dafault'.
129 self.AppendBrowserLaunchSwitch('--profile-directory=' + profile)
133 def _AssertDefaultSearchEngine(self, search_engine, profile='Default'):
134 """Asserts default search engine for given profile.
138 profile: The profile name, defaults to 'Default'.
140 self.AppendBrowserLaunchSwitch('--profile-directory=' + profile)
149 profile='Default'):
156 profile: The profile name, defaults to 'Default'.
158 self.AppendBrowserLaunchSwitch('--profile-directory=' + profile)
170 """Multi-profile windows can open."""
173 msg='Multi-profile is not enabled')
175 # Verify multi-profile info.
186 self.assertEqual('Profile 1', new_profile_window['profile_path'])
200 """Test startup page for Multi-profile windows."""
202 msg='Multi-profile is not enabled')
203 # Launch browser with new Profile 1, set startup page to 'www.google.com'.
206 # Launch browser with new Profile 2, set startup page to 'www.yahoo.com'.
208 # Verify start up page for Profile 2 is still newtab page.
212 # Exit Profile 1 / Profile 2
215 # Relaunch Browser with Profile 2, verify startup page.
216 self._AssertStartUpPage('http://www.yahoo.com', profile='Profile 2')
217 # Relaunch Browser with Profile 1, verify startup page.
218 self._AssertStartUpPage('http://www.google.com', profile='Profile 1')
221 """Test Home page for Multi-profile windows."""
223 msg='Multi-profile is not enabled')
224 # Launch browser with new Profile 1, set homepage to 'www.google.com'.
227 # Launch browser with new Profile 2, set homepage to 'www.yahoo.com'.
230 # Exit Profile 1 / Profile 2
233 # Relaunch Browser with Profile 2, verify startup page.
234 self._AssertHomePage('http://www.yahoo.com', profile='Profile 2')
235 # Relaunch Browser with Profile 1, verify startup page.
236 self._AssertHomePage('http://www.google.com', profile='Profile 1')
239 """Test session restore preference for Multi-profile windows."""
241 msg='Multi-profile is not enabled')
242 # Launch browser with new Profile 1, set pref to restore session on
246 # Launch browser with new Profile 2, do not set session restore pref.
249 # Exit Profile 1 / Profile 2
252 # Relaunch Browser with Profile 1, verify session restores on startup.
255 num_tabs=2, profile='Profile 1')
256 # Relaunch Browser with Profile 2, verify session does not get restored.
259 num_tabs=1, profile='Profile 2')
264 msg='Multi-profile is not enabled')
265 # Launch browser with new Profile 1, add search engine to 'Hulu'.
270 # Launch browser with new Profile 2, add search engine to 'Youtube'.
276 # Exit Profile 1 / Profile 2
279 # Relaunch Browser with Profile 1, verify default search engine as 'Hulu'.
280 self._AssertDefaultSearchEngine('hulu.com', profile='Profile 1')
281 # Relaunch Browser with Profile 2, verify default search engine as
283 self._AssertDefaultSearchEngine('youtube.com', profile='Profile 2')
288 msg='Multi-profile is not enabled')
289 # Launch browser with new Profile 1, add 'foo.com' as new search engine.
292 # Launch browser with new Profile 2, add 'foo.com' as new search engine.
295 # Delete search engine 'foo.com' from Profile 1 and exit.
299 # Relaunch Browser with Profile 1, verify search engine 'foo.com'
301 self.AppendBrowserLaunchSwitch('--profile-directory=Profile 1')
305 # Relaunch Browser with Profile 2, verify search engine 'foo.com'
307 self.AppendBrowserLaunchSwitch('--profile-directory=Profile 2')