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

Side by Side Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_interactive_uitest.cc

Issue 11419276: Remove tabstrip wrappers in browser_tabstrip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_commands.h" 8 #include "chrome/browser/ui/browser_commands.h"
9 #include "chrome/browser/ui/browser_tabstrip.h" 9 #include "chrome/browser/ui/browser_tabstrip.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // Create new tab; open findbar. 36 // Create new tab; open findbar.
37 chrome::NewTab(browser()); 37 chrome::NewTab(browser());
38 chrome::Find(browser()); 38 chrome::Find(browser());
39 39
40 // Create new tab with an arbitrary URL. 40 // Create new tab with an arbitrary URL.
41 GURL url = test_server()->GetURL(kSimplePage); 41 GURL url = test_server()->GetURL(kSimplePage);
42 chrome::AddSelectedTabWithURL(browser(), url, content::PAGE_TRANSITION_TYPED); 42 chrome::AddSelectedTabWithURL(browser(), url, content::PAGE_TRANSITION_TYPED);
43 43
44 // Switch back to the NTP with the active findbar. 44 // Switch back to the NTP with the active findbar.
45 chrome::ActivateTabAt(browser(), 1, false); 45 browser()->tab_strip_model()->ActivateTabAt(1, false);
46 46
47 // Wait for the findbar to show. 47 // Wait for the findbar to show.
48 MessageLoop::current()->RunUntilIdle(); 48 MessageLoop::current()->RunUntilIdle();
49 49
50 // Set focus somewhere else, so that we can test clicking on the findbar 50 // Set focus somewhere else, so that we can test clicking on the findbar
51 // works. 51 // works.
52 chrome::FocusLocationBar(browser()); 52 chrome::FocusLocationBar(browser());
53 ui_test_utils::ClickOnView(browser(), VIEW_ID_FIND_IN_PAGE_TEXT_FIELD); 53 ui_test_utils::ClickOnView(browser(), VIEW_ID_FIND_IN_PAGE_TEXT_FIELD);
54 ui_test_utils::IsViewFocused(browser(), VIEW_ID_FIND_IN_PAGE_TEXT_FIELD); 54 ui_test_utils::IsViewFocused(browser(), VIEW_ID_FIND_IN_PAGE_TEXT_FIELD);
55 } 55 }
(...skipping 18 matching lines...) Expand all
74 MessageLoop::current()->RunUntilIdle(); 74 MessageLoop::current()->RunUntilIdle();
75 75
76 // This is kind of a hack. Calling this just once doesn't seem to send a click 76 // This is kind of a hack. Calling this just once doesn't seem to send a click
77 // event, but doing it twice works. 77 // event, but doing it twice works.
78 // http://crbug.com/35581 78 // http://crbug.com/35581
79 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS); 79 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS);
80 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS); 80 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS);
81 81
82 EXPECT_TRUE(has_been_clicked); 82 EXPECT_TRUE(has_been_clicked);
83 } 83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698