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

Unified Diff: chrome/browser/ui/search/instant_extended_browsertest.cc

Issue 13162003: Instant: Don't use the local overlay's URL for the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 | « chrome/browser/ui/search/instant_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_extended_browsertest.cc
diff --git a/chrome/browser/ui/search/instant_extended_browsertest.cc b/chrome/browser/ui/search/instant_extended_browsertest.cc
index 3bfeb77f672bc69d825a0f9a724e7d26d86aef8e..e60edba9b9413583af735450a792d857dbd1d928 100644
--- a/chrome/browser/ui/search/instant_extended_browsertest.cc
+++ b/chrome/browser/ui/search/instant_extended_browsertest.cc
@@ -1355,3 +1355,16 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedTest, AutocompleteProvidersDone) {
EXPECT_TRUE(UpdateSearchState(overlay));
EXPECT_EQ(1, on_native_suggestions_calls_);
}
+
+// Test that the local NTP doesn't end up with the local overlay's URL.
+IN_PROC_BROWSER_TEST_F(InstantExtendedTest, LocalNTPIsNotLocalOverlay) {
+ ASSERT_NO_FATAL_FAILURE(SetupInstant(browser()));
+
+ EXPECT_EQ(instant_url(), instant()->ntp_->contents()->GetURL());
+
+ // The second argument says to use only the local overlay.
+ instant()->SetInstantEnabled(false, true);
+
+ EXPECT_EQ(GURL(chrome::kChromeSearchLocalNtpUrl),
+ instant()->ntp_->contents()->GetURL());
+}
« no previous file with comments | « chrome/browser/ui/search/instant_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698