Chromium Code Reviews| Index: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc |
| diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc |
| index 22ec640e2c9d9449ec6fe870128824935e71355b..a84fe9a504045e127307d3df8e3fe18a6736dff1 100644 |
| --- a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc |
| +++ b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc |
| @@ -168,6 +168,11 @@ class ProfileChooserViewExtensionsTest : public ExtensionBrowserTest { |
| return ProfileChooserView::profile_bubble_; |
| } |
| + views::View* signin_current_profile_link() { |
| + DCHECK(ProfileChooserView::profile_bubble_); |
|
msw
2015/07/13 21:37:30
nit: this isn't needed.
wjmaclean
2015/07/14 12:26:18
Done.
|
| + return ProfileChooserView::profile_bubble_->signin_current_profile_link_; |
| + } |
| + |
| void ShowSigninView() { |
| DCHECK(current_profile_bubble()); |
| DCHECK(current_profile_bubble()->avatar_menu_); |
| @@ -183,6 +188,14 @@ class ProfileChooserViewExtensionsTest : public ExtensionBrowserTest { |
| DISALLOW_COPY_AND_ASSIGN(ProfileChooserViewExtensionsTest); |
| }; |
| +// crbug.com/449088 |
| +IN_PROC_BROWSER_TEST_F(ProfileChooserViewExtensionsTest, SigninButtonHasFocus) { |
| + ASSERT_TRUE(profiles::IsMultipleProfilesEnabled()); |
| + ASSERT_NO_FATAL_FAILURE(OpenProfileChooserView(browser())); |
| + |
| + EXPECT_TRUE(signin_current_profile_link()->HasFocus()); |
| +} |
| + |
| // crbug.com/502370 |
| IN_PROC_BROWSER_TEST_F(ProfileChooserViewExtensionsTest, ContentAreaHasFocus) { |
| ASSERT_TRUE(profiles::IsMultipleProfilesEnabled()); |