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

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

Issue 7004042: Fix Wrong Offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/history_quick_provider.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/history_quick_provider_unittest.cc
===================================================================
--- chrome/browser/autocomplete/history_quick_provider_unittest.cc (revision 85919)
+++ chrome/browser/autocomplete/history_quick_provider_unittest.cc (working copy)
@@ -222,6 +222,14 @@
RunTest(text, expected_urls, expected_url);
}
+TEST_F(HistoryQuickProviderTest, NonWordLastCharacterMatch) {
+ string16 text(ASCIIToUTF16("slashdot.org/"));
+ std::string expected_url("http://slashdot.org/favorite_page.html");
Peter Kasting 2011/05/20 22:06:41 Remind me why this catches the bug?
+ std::vector<std::string> expected_urls;
+ expected_urls.push_back(expected_url);
+ RunTest(text, expected_urls, expected_url);
+}
+
TEST_F(HistoryQuickProviderTest, MultiMatch) {
string16 text(ASCIIToUTF16("foo"));
std::vector<std::string> expected_urls;
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698