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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc

Issue 10916166: Disable EnterToSearch on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable on all platforms Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 #endif 1356 #endif
1357 1357
1358 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, MAYBE_DesiredTLD) { 1358 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, MAYBE_DesiredTLD) {
1359 DesiredTLDTest(); 1359 DesiredTLDTest();
1360 } 1360 }
1361 1361
1362 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, AltEnter) { 1362 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, AltEnter) {
1363 AltEnterTest(); 1363 AltEnterTest();
1364 } 1364 }
1365 1365
1366 // http://crbug.com/133354 1366 // http://crbug.com/133354, http://crbug.com/146953
1367 #if defined(OS_LINUX) || defined(OS_MACOSX) 1367 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, DISABLED_EnterToSearch) {
1368 #define MAYBE_EnterToSearch DISABLED_EnterToSearch
1369 #else
1370 #define MAYBE_EnterToSearch EnterToSearch
1371 #endif
1372 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, MAYBE_EnterToSearch) {
1373 EnterToSearchTest(); 1368 EnterToSearchTest();
1374 } 1369 }
1375 1370
1376 // http://crbug.com/131179 1371 // http://crbug.com/131179
1377 #if defined(OS_LINUX) 1372 #if defined(OS_LINUX)
1378 #define MAYBE_EscapeToDefaultMatch DISABLED_EscapeToDefaultMatch 1373 #define MAYBE_EscapeToDefaultMatch DISABLED_EscapeToDefaultMatch
1379 #else 1374 #else
1380 #define MAYBE_EscapeToDefaultMatch EscapeToDefaultMatch 1375 #define MAYBE_EscapeToDefaultMatch EscapeToDefaultMatch
1381 #endif 1376 #endif
1382 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, MAYBE_EscapeToDefaultMatch) { 1377 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, MAYBE_EscapeToDefaultMatch) {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 1665
1671 // Middle-clicking shouldn't select all the text either. 1666 // Middle-clicking shouldn't select all the text either.
1672 ASSERT_NO_FATAL_FAILURE( 1667 ASSERT_NO_FATAL_FAILURE(
1673 ClickFocusViewOrigin(ui_controls::LEFT, kClickOffset, kClickOffset)); 1668 ClickFocusViewOrigin(ui_controls::LEFT, kClickOffset, kClickOffset));
1674 ASSERT_NO_FATAL_FAILURE(ClickBrowserWindowCenter()); 1669 ASSERT_NO_FATAL_FAILURE(ClickBrowserWindowCenter());
1675 ASSERT_NO_FATAL_FAILURE( 1670 ASSERT_NO_FATAL_FAILURE(
1676 ClickFocusViewOrigin(ui_controls::MIDDLE, kClickOffset, kClickOffset)); 1671 ClickFocusViewOrigin(ui_controls::MIDDLE, kClickOffset, kClickOffset));
1677 EXPECT_FALSE(omnibox_view->IsSelectAll()); 1672 EXPECT_FALSE(omnibox_view->IsSelectAll());
1678 } 1673 }
1679 #endif // defined(USE_AURA) 1674 #endif // defined(USE_AURA)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698