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

Unified Diff: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc

Issue 214613003: [OriginChip] Show the URL on Esc key pressed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test Created 6 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/omnibox/omnibox_edit_model.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/omnibox/omnibox_view_browsertest.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
index c51bb2a027e0c3a81b358a805f9558e7fed56b39..f5b09f8a129181b594c3e6381ac4ccdc4c4f0c6c 100644
--- a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
+++ b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
@@ -1830,9 +1830,9 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewTest,
EXPECT_EQ(url_c, omnibox_view->GetText());
}
-IN_PROC_BROWSER_TEST_F(OmniboxViewTest, InputResetsSearchTermReplacement) {
- browser()->toolbar_model()->set_url_replacement_enabled(false);
+IN_PROC_BROWSER_TEST_F(OmniboxViewTest, EscDisablesSearchTermReplacement) {
+ browser()->toolbar_model()->set_url_replacement_enabled(true);
chrome::FocusLocationBar(browser());
- ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_A, 0));
- EXPECT_TRUE(browser()->toolbar_model()->url_replacement_enabled());
+ ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_ESCAPE, 0));
+ EXPECT_FALSE(browser()->toolbar_model()->url_replacement_enabled());
}
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698