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

Unified Diff: chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc

Issue 10876010: Treat non-English words as words. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/renderer/spellchecker/spellcheck_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc
===================================================================
--- chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc (revision 152650)
+++ chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc (working copy)
@@ -203,6 +203,15 @@
&completion);
EXPECT_EQ(completion.completion_count_, 3U);
EXPECT_EQ(completion.cancellation_count_, 2U);
+
+ // Test that the SpellCheckProvider class sends a request when it receives a
+ // Russian word.
+ const wchar_t kRussianWord[] = L"\x0431\x0451\x0434\x0440\x0430";
+ provider_.RequestTextChecking(WebKit::WebString(WideToUTF16(kRussianWord)),
+ document_tag,
+ &completion);
+ EXPECT_EQ(completion.completion_count_, 4U);
+ EXPECT_EQ(completion.cancellation_count_, 2U);
}
} // namespace
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698