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 "base/keyboard_codes.h" | 5 #include "base/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 "chrome/browser/browser.h" | 9 #include "chrome/browser/browser.h" |
9 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
10 #include "chrome/browser/find_bar.h" | 11 #include "chrome/browser/find_bar.h" |
11 #include "chrome/browser/find_bar_controller.h" | 12 #include "chrome/browser/find_bar_controller.h" |
12 #include "chrome/browser/find_notification_details.h" | 13 #include "chrome/browser/find_notification_details.h" |
13 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
14 #include "chrome/browser/renderer_host/render_view_host.h" | 15 #include "chrome/browser/renderer_host/render_view_host.h" |
15 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
16 #include "chrome/browser/tab_contents/tab_contents_view.h" | 17 #include "chrome/browser/tab_contents/tab_contents_view.h" |
17 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 | 1086 |
1086 TabContents* tab = browser()->GetSelectedTabContents(); | 1087 TabContents* tab = browser()->GetSelectedTabContents(); |
1087 int ordinal = 0; | 1088 int ordinal = 0; |
1088 FindInPageWchar(tab, L"link", kFwd, kIgnoreCase, &ordinal); | 1089 FindInPageWchar(tab, L"link", kFwd, kIgnoreCase, &ordinal); |
1089 EXPECT_EQ(ordinal, 1); | 1090 EXPECT_EQ(ordinal, 1); |
1090 | 1091 |
1091 // End the find session, click on the link. | 1092 // End the find session, click on the link. |
1092 tab->StopFinding(FindBarController::kActivateSelection); | 1093 tab->StopFinding(FindBarController::kActivateSelection); |
1093 EXPECT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); | 1094 EXPECT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); |
1094 } | 1095 } |
OLD | NEW |