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

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

Issue 26869004: Merge 227483 "Views Textfield/Omnibox: Do not paste on Ctrl+Alt[..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1650/src/
Patch Set: Created 7 years, 2 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/views/omnibox/omnibox_view_views.cc » ('j') | 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
===================================================================
--- chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (revision 227959)
+++ chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (working copy)
@@ -1583,6 +1583,12 @@
ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_V, kCtrlOrCmdMask));
EXPECT_EQ(ASCIIToUTF16("ab123cd"), omnibox_view->GetText());
EXPECT_TRUE(popup_model->IsOpen());
+
+ // Ctrl/Cmd+Alt+V should not paste.
+ ASSERT_NO_FATAL_FAILURE(
+ SendKey(ui::VKEY_V, kCtrlOrCmdMask | ui::EF_ALT_DOWN));
+ EXPECT_EQ(ASCIIToUTF16("ab123cd"), omnibox_view->GetText());
+ // TODO(msw): Test that AltGr+V does not paste.
}
IN_PROC_BROWSER_TEST_F(OmniboxViewTest, CopyURLToClipboard) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698