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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_browsertest.cc

Issue 8574006: Mark AutocompleteBrowserTest.FocusSearch flaky on Windows and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/format_macros.h" 5 #include "base/format_macros.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/autocomplete/autocomplete.h" 9 #include "chrome/browser/autocomplete/autocomplete.h"
10 #include "chrome/browser/autocomplete/autocomplete_edit.h" 10 #include "chrome/browser/autocomplete/autocomplete_edit.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 content::PAGE_TRANSITION_START_PAGE); 163 content::PAGE_TRANSITION_START_PAGE);
164 observer.Wait(); 164 observer.Wait();
165 EXPECT_EQ(UTF8ToUTF16(chrome::kAboutBlankURL), 165 EXPECT_EQ(UTF8ToUTF16(chrome::kAboutBlankURL),
166 location_bar->location_entry()->GetText()); 166 location_bar->location_entry()->GetText());
167 browser()->CloseTab(); 167 browser()->CloseTab();
168 EXPECT_EQ(UTF8ToUTF16(chrome::kAboutBlankURL), 168 EXPECT_EQ(UTF8ToUTF16(chrome::kAboutBlankURL),
169 location_bar->location_entry()->GetText()); 169 location_bar->location_entry()->GetText());
170 EXPECT_TRUE(location_bar->location_entry()->IsSelectAll()); 170 EXPECT_TRUE(location_bar->location_entry()->IsSelectAll());
171 } 171 }
172 172
173 #if defined(OS_WINDOWS) || defined(OS_LINUX)
174 // http://crbug.com/104307
175 #define FocusSearch FLAKY_FocusSearch
176 #endif
173 IN_PROC_BROWSER_TEST_F(AutocompleteBrowserTest, FocusSearch) { 177 IN_PROC_BROWSER_TEST_F(AutocompleteBrowserTest, FocusSearch) {
174 LocationBar* location_bar = GetLocationBar(); 178 LocationBar* location_bar = GetLocationBar();
175 179
176 // Focus search when omnibox is blank 180 // Focus search when omnibox is blank
177 { 181 {
178 EXPECT_TRUE(location_bar->GetInputString().empty()); 182 EXPECT_TRUE(location_bar->GetInputString().empty());
179 EXPECT_EQ(UTF8ToUTF16(chrome::kAboutBlankURL), 183 EXPECT_EQ(UTF8ToUTF16(chrome::kAboutBlankURL),
180 location_bar->location_entry()->GetText()); 184 location_bar->location_entry()->GetText());
181 185
182 location_bar->FocusSearch(); 186 location_bar->FocusSearch();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 const AutocompleteResult& result = autocomplete_controller->result(); 324 const AutocompleteResult& result = autocomplete_controller->result();
321 // 'App test' is also a substring of extension 'Packaged App Test'. 325 // 'App test' is also a substring of extension 'Packaged App Test'.
322 EXPECT_GT(result.size(), 2U) << AutocompleteResultAsString(result); 326 EXPECT_GT(result.size(), 2U) << AutocompleteResultAsString(result);
323 AutocompleteMatch match = result.match_at(0); 327 AutocompleteMatch match = result.match_at(0);
324 EXPECT_EQ(ASCIIToUTF16("App Test"), match.contents); 328 EXPECT_EQ(ASCIIToUTF16("App Test"), match.contents);
325 EXPECT_EQ(AutocompleteMatch::EXTENSION_APP, match.type); 329 EXPECT_EQ(AutocompleteMatch::EXTENSION_APP, match.type);
326 EXPECT_FALSE(match.deletable); 330 EXPECT_FALSE(match.deletable);
327 location_bar->AcceptInput(); 331 location_bar->AcceptInput();
328 } 332 }
329 } 333 }
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