summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/common/spellcheck_common.cc3
-rw-r--r--chrome/renderer/spellchecker/spellcheck_unittest.cc11
2 files changed, 10 insertions, 4 deletions
diff --git a/chrome/common/spellcheck_common.cc b/chrome/common/spellcheck_common.cc
index c34c2fd..21ff923 100644
--- a/chrome/common/spellcheck_common.cc
+++ b/chrome/common/spellcheck_common.cc
@@ -47,6 +47,7 @@ static const struct {
{"ru", "ru-RU"},
{"sk", "sk-SK"},
{"sl", "sl-SI"},
+ {"sh", "sh"},
{"sr", "sr"},
{"sv", "sv-SE"},
{"tr", "tr-TR"},
@@ -101,6 +102,8 @@ FilePath GetVersionedFileName(const std::string& input_language,
{"uk-UA", "-2-0"},
{"en-US", "-2-1"}, // 2-1 (Mar 2011): upgraded dictionaries.
{"en-CA", "-2-1"},
+ {"pt-BR", "-2-2"}, // 2-2 (Mar 2011): upgraded a dictionary.
+ {"sh", "-2-2"}, // 2-2 (Mar 2011): added a dictionary.
};
// Generate the bdict file name using default version string or special
diff --git a/chrome/renderer/spellchecker/spellcheck_unittest.cc b/chrome/renderer/spellchecker/spellcheck_unittest.cc
index a433377..75c24f2 100644
--- a/chrome/renderer/spellchecker/spellcheck_unittest.cc
+++ b/chrome/renderer/spellchecker/spellcheck_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -551,9 +551,7 @@ TEST_F(SpellCheckTest, SpellCheckText) {
#if !defined(OS_MACOSX)
L"torn\x00E1-las "
#endif
- L"acess\x00EDveis e "
- // L"\x00FAteis " - to be added.
- L"em car\x00E1ter universal."
+ L"acess\x00EDveis e \x00FAteis em car\x00E1ter universal."
}, {
// Portuguese (Portugal)
"pt-PT",
@@ -588,6 +586,11 @@ TEST_F(SpellCheckTest, SpellCheckText) {
// A Russian word including U+0451. (Bug 15558 <http://crbug.com/15558>)
L"\u0451\u043B\u043A\u0430"
}, {
+ // Serbo-Croatian (Serbian Latin)
+ "sh",
+ L"Google-ova misija je da organizuje sve informacije na svetu i "
+ L"u\x010dini ih univerzal-no dostupnim i korisnim."
+ }, {
// Serbian
"sr",
L"\x0047\x006f\x006f\x0067\x006c\x0065\x002d\x043e\x0432\x0430 "