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

Unified Diff: chrome/browser/autocomplete/autocomplete_input_unittest.cc

Issue 11896016: Omnibox: Trim Leading Spaces After Initial Forced-Query '?' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added tests Created 7 years, 11 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/autocomplete/autocomplete_input.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_input_unittest.cc
diff --git a/chrome/browser/autocomplete/autocomplete_input_unittest.cc b/chrome/browser/autocomplete/autocomplete_input_unittest.cc
index ade2db818db815b45d03aa3265fca67737f53d5e..e7f929180e6528d3ef9c56d7920fdab603e415c9 100644
--- a/chrome/browser/autocomplete/autocomplete_input_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_input_unittest.cc
@@ -222,6 +222,9 @@ TEST(AutocompleteInputTest, InputTypeWithCursorPosition) {
// forced query.
{ ASCIIToUTF16("?foo bar"), 2, ASCIIToUTF16("foo bar"), 1 },
+ { ASCIIToUTF16(" ?foo bar"), 4, ASCIIToUTF16("foo bar"), 1 },
+ { ASCIIToUTF16("? foo bar"), 4, ASCIIToUTF16("foo bar"), 1 },
+ { ASCIIToUTF16(" ? foo bar"), 6, ASCIIToUTF16("foo bar"), 1 },
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input_cases); ++i) {
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_input.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698