Lines Matching refs:location_bar
17 #include "chrome/browser/ui/omnibox/location_bar.h"
63 LocationBar* location_bar = GetLocationBar();
65 EXPECT_TRUE(location_bar->GetInputString().empty());
67 location_bar->location_entry()->GetText());
71 location_bar->FocusLocation(true);
73 EXPECT_TRUE(location_bar->GetInputString().empty());
75 location_bar->location_entry()->GetText());
76 EXPECT_TRUE(location_bar->location_entry()->IsSelectAll());
78 location_bar->location_entry()->SetUserText(ASCIIToUTF16("chrome"));
80 EXPECT_TRUE(location_bar->GetInputString().empty());
81 EXPECT_EQ(ASCIIToUTF16("chrome"), location_bar->location_entry()->GetText());
82 EXPECT_FALSE(location_bar->location_entry()->IsSelectAll());
84 location_bar->location_entry()->RevertAll();
86 EXPECT_TRUE(location_bar->GetInputString().empty());
88 location_bar->location_entry()->GetText());
89 EXPECT_FALSE(location_bar->location_entry()->IsSelectAll());
91 location_bar->location_entry()->SetUserText(ASCIIToUTF16("chrome"));
92 location_bar->Revert();
94 EXPECT_TRUE(location_bar->GetInputString().empty());
96 location_bar->location_entry()->GetText());
97 EXPECT_FALSE(location_bar->location_entry()->IsSelectAll());
105 LocationBar* location_bar = GetLocationBar();
114 EXPECT_TRUE(location_bar->GetInputString().empty());
115 EXPECT_TRUE(location_bar->location_entry()->GetText().empty());
116 EXPECT_TRUE(location_bar->location_entry()->IsSelectAll());
128 location_bar->Revert();
130 EXPECT_TRUE(location_bar->GetInputString().empty());
132 location_bar->location_entry()->GetText());
133 EXPECT_FALSE(location_bar->location_entry()->IsSelectAll());
143 LocationBar* location_bar = GetLocationBar();
145 location_bar->location_entry()->GetText());
146 location_bar->location_entry()->SetUserText(string16());
152 location_bar->location_entry()->GetText());
155 location_bar->location_entry()->GetText());
156 EXPECT_TRUE(location_bar->location_entry()->IsSelectAll());
160 LocationBar* location_bar = GetLocationBar();
164 EXPECT_TRUE(location_bar->GetInputString().empty());
166 location_bar->location_entry()->GetText());
168 location_bar->FocusSearch();
169 EXPECT_TRUE(location_bar->GetInputString().empty());
170 EXPECT_EQ(ASCIIToUTF16("?"), location_bar->location_entry()->GetText());
173 location_bar->location_entry()->GetSelectionBounds(&selection_start,
181 location_bar->location_entry()->SetUserText(ASCIIToUTF16("foo"));
182 EXPECT_TRUE(location_bar->GetInputString().empty());
183 EXPECT_EQ(ASCIIToUTF16("foo"), location_bar->location_entry()->GetText());
185 location_bar->FocusSearch();
186 EXPECT_TRUE(location_bar->GetInputString().empty());
187 EXPECT_EQ(ASCIIToUTF16("?"), location_bar->location_entry()->GetText());
190 location_bar->location_entry()->GetSelectionBounds(&selection_start,
199 location_bar->location_entry()->SetUserText(ASCIIToUTF16("?"));
200 EXPECT_TRUE(location_bar->GetInputString().empty());
201 EXPECT_EQ(ASCIIToUTF16("?"), location_bar->location_entry()->GetText());
203 location_bar->FocusSearch();
204 EXPECT_TRUE(location_bar->GetInputString().empty());
205 EXPECT_EQ(ASCIIToUTF16("?"), location_bar->location_entry()->GetText());
208 location_bar->location_entry()->GetSelectionBounds(&selection_start,
217 location_bar->location_entry()->SetUserText(ASCIIToUTF16("?foo"));
218 EXPECT_TRUE(location_bar->GetInputString().empty());
219 EXPECT_EQ(ASCIIToUTF16("?foo"), location_bar->location_entry()->GetText());
221 location_bar->FocusSearch();
222 EXPECT_TRUE(location_bar->GetInputString().empty());
223 EXPECT_EQ(ASCIIToUTF16("?foo"), location_bar->location_entry()->GetText());
226 location_bar->location_entry()->GetSelectionBounds(&selection_start,
234 location_bar->location_entry()->SetUserText(ASCIIToUTF16(" ?foo"));
235 EXPECT_TRUE(location_bar->GetInputString().empty());
237 location_bar->location_entry()->GetText());
239 location_bar->FocusSearch();
240 EXPECT_TRUE(location_bar->GetInputString().empty());
242 location_bar->location_entry()->GetText());
245 location_bar->location_entry()->GetSelectionBounds(&selection_start,