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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm

Issue 13726019: Instant Extended: Hide bookmark bar on search results page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm b/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm
index b27bc83d77ece0cd61b941d622fd14fba447dc00..221a5b988f9b5807f91feae5d1389ea96a91eb6f 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm
@@ -489,3 +489,15 @@ IN_PROC_BROWSER_TEST_F(BrowserWindowControllerTest,
EXPECT_TRUE([[contentView hitTest:point]
isDescendantOf:[controller() tabContentArea]]);
}
+
+// Verify that |currentInstantUIState| returns the correct value for search
+// results mode.
+IN_PROC_BROWSER_TEST_F(BrowserWindowControllerTest, InstantSearchResultsMode) {
+ chrome::EnableInstantExtendedAPIForTesting();
+ SearchMode mode(SearchMode::MODE_SEARCH_RESULTS, SearchMode::ORIGIN_SEARCH);
+ browser()->search_model()->SetMode(mode);
+ browser()->search_model()->SetTopBarsVisible(false);
+ EXPECT_TRUE(browser()->search_model()->mode().is_search_results());
+ EXPECT_EQ(browser_window_controller::kInstantUIFullPageResults,
+ [controller() currentInstantUIState]);
+}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698