Index: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc |
diff --git a/chrome/browser/ui/find_bar/find_bar_host_browsertest.cc b/chrome/browser/ui/find_bar/find_bar_host_browsertest.cc |
index f5697721fe9ef5163b3f8a6bb63b38c6c1a2e613..650951c1f6f00ddb15ed68bcf573fd639bea331f 100644 |
--- a/chrome/browser/ui/find_bar/find_bar_host_browsertest.cc |
+++ b/chrome/browser/ui/find_bar/find_bar_host_browsertest.cc |
@@ -782,6 +782,13 @@ IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, AcceleratorRestoring) { |
// The accelerator for Escape should be back to what it was before. |
EXPECT_EQ(old_target, |
focus_manager->GetCurrentTargetForAccelerator(escape)); |
+ |
+ // Show find bar again with animation on, and the target should be |
+ // on find bar. |
+ DropdownBarHost::disable_animations_during_testing_ = false; |
+ browser()->ShowFindBar(); |
+ EXPECT_EQ(new_target, |
+ focus_manager->GetCurrentTargetForAccelerator(escape)); |
} |
#endif // TOOLKIT_VIEWS |