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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_unittest.cc

Issue 2807035: Adds a unit test for Serbian and Ukranian dictionaries.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/common/spellcheck_common.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/webkit_glue.h" 5 #include "webkit/glue/webkit_glue.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 L"\x043C\x0438\x0440\x043E\x0432\x043E\x0439 " 581 L"\x043C\x0438\x0440\x043E\x0432\x043E\x0439 "
582 L"\x0438\x043D\x0444\x043E\x0440\x043C\x0430\x0446\x0438\x0438, " 582 L"\x0438\x043D\x0444\x043E\x0440\x043C\x0430\x0446\x0438\x0438, "
583 L"\x043E\x0431\x0435\x0441\x043F\x0435\x0447\x0435\x043D\x0438\x0438 " 583 L"\x043E\x0431\x0435\x0441\x043F\x0435\x0447\x0435\x043D\x0438\x0438 "
584 L"\x0435\x0435 " 584 L"\x0435\x0435 "
585 L"\x0434\x043E\x0441\x0442\x0443\x043F\x043D\x043E\x0441\x0442\x0438 " 585 L"\x0434\x043E\x0441\x0442\x0443\x043F\x043D\x043E\x0441\x0442\x0438 "
586 L"\x0438 \x043F\x043E\x043B\x044C\x0437\x044B \x0434\x043B\x044F " 586 L"\x0438 \x043F\x043E\x043B\x044C\x0437\x044B \x0434\x043B\x044F "
587 L"\x0432\x0441\x0435\x0445." 587 L"\x0432\x0441\x0435\x0445."
588 // A Russian word including U+0451. (Bug 15558 <http://crbug.com/15558>) 588 // A Russian word including U+0451. (Bug 15558 <http://crbug.com/15558>)
589 L"\u0451\u043B\u043A\u0430" 589 L"\u0451\u043B\u043A\u0430"
590 }, { 590 }, {
591 // Serbian
592 "sr",
593 L"\x0047\x006f\x006f\x0067\x006c\x0065\x002d\x043e\x0432\x0430 "
594 L"\x043c\x0438\x0441\x0438\x0458\x0430 \x0458\x0435 \x0434\x0430 "
595 L"\x043e\x0440\x0433\x0430\x043d\x0438\x0437\x0443\x0458\x0435 "
596 L"\x0441\x0432\x0435 "
597 L"\x0438\x043d\x0444\x043e\x0440\x043c\x0430\x0446\x0438\x0458\x0435 "
598 L"\x043d\x0430 \x0441\x0432\x0435\x0442\x0443 \x0438 "
599 L"\x0443\x0447\x0438\x043d\x0438 \x0438\x0445 "
600 L"\x0443\x043d\x0438\x0432\x0435\x0440\x0437\x0430\x043b\x043d\x043e "
601 L"\x0434\x043e\x0441\x0442\x0443\x043f\x043d\x0438\x043c \x0438 "
602 L"\x043a\x043e\x0440\x0438\x0441\x043d\x0438\x043c."
603 }, {
591 // Slovak 604 // Slovak
592 "sk-SK", 605 "sk-SK",
593 L"Spolo\x010Dnos\x0165 Google si dala za \x00FAlohu usporiada\x0165 " 606 L"Spolo\x010Dnos\x0165 Google si dala za \x00FAlohu usporiada\x0165 "
594 L"inform\x00E1\x0063ie " 607 L"inform\x00E1\x0063ie "
595 L"z cel\x00E9ho sveta a zabezpe\x010Di\x0165, " 608 L"z cel\x00E9ho sveta a zabezpe\x010Di\x0165, "
596 L"aby boli v\x0161eobecne dostupn\x00E9 a u\x017Eito\x010Dn\x00E9." 609 L"aby boli v\x0161eobecne dostupn\x00E9 a u\x017Eito\x010Dn\x00E9."
597 }, { 610 }, {
598 // Slovenian 611 // Slovenian
599 "sl-SI", 612 "sl-SI",
600 // L"Googlovo " - to be added. 613 // L"Googlovo " - to be added.
601 L"poslanstvo je organizirati svetovne informacije in " 614 L"poslanstvo je organizirati svetovne informacije in "
602 L"omogo\x010Diti njihovo dostopnost in s tem uporabnost za vse." 615 L"omogo\x010Diti njihovo dostopnost in s tem uporabnost za vse."
603 }, { 616 }, {
604 // Swedish 617 // Swedish
605 "sv-SE", 618 "sv-SE",
606 L"Googles m\x00E5ls\x00E4ttning \x00E4r att ordna v\x00E4rldens " 619 L"Googles m\x00E5ls\x00E4ttning \x00E4r att ordna v\x00E4rldens "
607 L"samlade information och g\x00F6ra den tillg\x00E4nglig f\x00F6r alla." 620 L"samlade information och g\x00F6ra den tillg\x00E4nglig f\x00F6r alla."
608 }, { 621 }, {
609 // Turkish 622 // Turkish
610 "tr-TR", 623 "tr-TR",
611 // L"Google\x2019\x0131n " - to be added. 624 // L"Google\x2019\x0131n " - to be added.
612 L"misyonu, d\x00FCnyadaki t\x00FCm bilgileri " 625 L"misyonu, d\x00FCnyadaki t\x00FCm bilgileri "
613 L"organize etmek ve evrensel olarak eri\x015Filebilir ve " 626 L"organize etmek ve evrensel olarak eri\x015Filebilir ve "
614 L"kullan\x0131\x015Fl\x0131 k\x0131lmakt\x0131r." 627 L"kullan\x0131\x015Fl\x0131 k\x0131lmakt\x0131r."
615 }, { 628 }, {
629 // Ukranian
630 "uk-UA",
631 L"\x041c\x0456\x0441\x0456\x044f "
632 L"\x043a\x043e\x043c\x043f\x0430\x043d\x0456\x0457 Google "
633 L"\x043f\x043e\x043b\x044f\x0433\x0430\x0454 \x0432 "
634 L"\x0442\x043e\x043c\x0443, \x0449\x043e\x0431 "
635 L"\x0443\x043f\x043e\x0440\x044f\x0434\x043a\x0443\x0432\x0430\x0442"
636 L"\x0438 \x0456\x043d\x0444\x043e\x0440\x043c\x0430\x0446\x0456\x044e "
637 L"\x0437 \x0443\x0441\x044c\x043e\x0433\x043e "
638 L"\x0441\x0432\x0456\x0442\x0443 \x0442\x0430 "
639 L"\x0437\x0440\x043e\x0431\x0438\x0442\x0438 \x0457\x0457 "
640 L"\x0443\x043d\x0456\x0432\x0435\x0440\x0441\x0430\x043b\x044c\x043d"
641 L"\x043e \x0434\x043e\x0441\x0442\x0443\x043f\x043d\x043e\x044e "
642 L"\x0442\x0430 \x043a\x043e\x0440\x0438\x0441\x043d\x043e\x044e."
643 }, {
616 // Vietnamese 644 // Vietnamese
617 "vi-VN", 645 "vi-VN",
618 L"Nhi\x1EC7m v\x1EE5 c\x1EE7\x0061 " 646 L"Nhi\x1EC7m v\x1EE5 c\x1EE7\x0061 "
619 L"Google la \x0111\x1EC3 t\x1ED5 ch\x1EE9\x0063 " 647 L"Google la \x0111\x1EC3 t\x1ED5 ch\x1EE9\x0063 "
620 L"c\x00E1\x0063 th\x00F4ng tin c\x1EE7\x0061 " 648 L"c\x00E1\x0063 th\x00F4ng tin c\x1EE7\x0061 "
621 L"th\x1EBF gi\x1EDBi va l\x00E0m cho n\x00F3 universal c\x00F3 " 649 L"th\x1EBF gi\x1EDBi va l\x00E0m cho n\x00F3 universal c\x00F3 "
622 L"th\x1EC3 truy c\x1EADp va h\x1EEFu d\x1EE5ng h\x01A1n." 650 L"th\x1EC3 truy c\x1EADp va h\x1EEFu d\x1EE5ng h\x01A1n."
623 }, 651 },
624 }; 652 };
625 653
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 UTF8ToUTF16(kTestCases[i].expected_result)); 695 UTF8ToUTF16(kTestCases[i].expected_result));
668 string16 autocorrect_word = spell_check()->GetAutoCorrectionWord( 696 string16 autocorrect_word = spell_check()->GetAutoCorrectionWord(
669 misspelled_word, 0); 697 misspelled_word, 0);
670 698
671 // Check for spelling. 699 // Check for spelling.
672 EXPECT_EQ(expected_autocorrect_word, autocorrect_word); 700 EXPECT_EQ(expected_autocorrect_word, autocorrect_word);
673 } 701 }
674 } 702 }
675 703
676 } // namespace 704 } // namespace
OLDNEW
« no previous file with comments | « chrome/common/spellcheck_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698