OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "app/keyboard_codes.h" | 5 #include "app/keyboard_codes.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/renderer_host/render_view_host.h" | 10 #include "chrome/browser/renderer_host/render_view_host.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/browser/tab_contents/tab_contents_view.h" | 12 #include "chrome/browser/tab_contents/tab_contents_view.h" |
13 #include "chrome/browser/tabs/tab_strip_model.h" | 13 #include "chrome/browser/tabs/tab_strip_model.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_navigator.h" | 15 #include "chrome/browser/ui/browser_navigator.h" |
16 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
17 #include "chrome/browser/ui/find_bar/find_bar.h" | 17 #include "chrome/browser/ui/find_bar/find_bar.h" |
18 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 18 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
19 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 19 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 | 1076 |
1077 TabContents* tab = browser()->GetSelectedTabContents(); | 1077 TabContents* tab = browser()->GetSelectedTabContents(); |
1078 int ordinal = 0; | 1078 int ordinal = 0; |
1079 FindInPageWchar(tab, L"link", kFwd, kIgnoreCase, &ordinal); | 1079 FindInPageWchar(tab, L"link", kFwd, kIgnoreCase, &ordinal); |
1080 EXPECT_EQ(ordinal, 1); | 1080 EXPECT_EQ(ordinal, 1); |
1081 | 1081 |
1082 // End the find session, click on the link. | 1082 // End the find session, click on the link. |
1083 tab->StopFinding(FindBarController::kActivateSelection); | 1083 tab->StopFinding(FindBarController::kActivateSelection); |
1084 EXPECT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); | 1084 EXPECT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); |
1085 } | 1085 } |
OLD | NEW |