Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Side by Side Diff: chrome/browser/views/find_bar_host_interactive_uitest.cc

Issue 2131021: Revert revisions 47902 and 47900.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | views/controls/native/native_view_host_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/automation/ui_controls.h" 7 #include "chrome/browser/automation/ui_controls.h"
8 #include "chrome/browser/browser.h" 8 #include "chrome/browser/browser.h"
9 #include "chrome/browser/browser_window.h" 9 #include "chrome/browser/browser_window.h"
10 #include "chrome/browser/find_bar_controller.h" 10 #include "chrome/browser/find_bar_controller.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID()); 99 EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID());
100 100
101 // Select tab A. 101 // Select tab A.
102 browser()->SelectTabContentsAt(0, true); 102 browser()->SelectTabContentsAt(0, true);
103 103
104 // Close tab B. 104 // Close tab B.
105 browser()->CloseTabContents(browser()->GetTabContentsAt(1)); 105 browser()->CloseTabContents(browser()->GetTabContentsAt(1));
106 106
107 // Click on the location bar so that Find box loses focus. 107 // Click on the location bar so that Find box loses focus.
108 ClickOnView(VIEW_ID_LOCATION_BAR); 108 ClickOnView(VIEW_ID_LOCATION_BAR);
109 #if defined(OS_WIN) 109 #if defined(TOOLKIT_VIEWS) || defined(OS_WIN)
110 // Check the location bar is focused. 110 // Check the location bar is focused.
111 EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID()); 111 EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID());
112 #endif 112 #endif
113 113
114 // This used to crash until bug 1303709 was fixed. 114 // This used to crash until bug 1303709 was fixed.
115 ui_controls::SendKeyPressNotifyWhenDone( 115 ui_controls::SendKeyPressNotifyWhenDone(
116 browser()->window()->GetNativeHandle(), base::VKEY_ESCAPE, 116 browser()->window()->GetNativeHandle(), base::VKEY_ESCAPE,
117 false, false, false, false, new MessageLoop::QuitTask()); 117 false, false, false, false, new MessageLoop::QuitTask());
118 ui_test_utils::RunMessageLoop(); 118 ui_test_utils::RunMessageLoop();
119 } 119 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // the location bar (same as before, just checking that http://crbug.com/23599 152 // the location bar (same as before, just checking that http://crbug.com/23599
153 // is fixed). 153 // is fixed).
154 browser()->FocusLocationBar(); 154 browser()->FocusLocationBar();
155 EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID()); 155 EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID());
156 browser()->GetFindBarController()->Show(); 156 browser()->GetFindBarController()->Show();
157 EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID()); 157 EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID());
158 browser()->GetFindBarController()->EndFindSession( 158 browser()->GetFindBarController()->EndFindSession(
159 FindBarController::kKeepSelection); 159 FindBarController::kKeepSelection);
160 EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID()); 160 EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID());
161 } 161 }
OLDNEW
« no previous file with comments | « no previous file | views/controls/native/native_view_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698