diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 17:51:04 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 17:51:04 +0000 |
commit | b714b8c580cd67b647b339eae3bda6ec598addae (patch) | |
tree | 5af06a3a64187bbd05461d5121c83546d75e553a /chrome/browser/history/snippet_unittest.cc | |
parent | a0459cbb3e1df312bea4d8d9278fb26fa8161fd9 (diff) | |
download | chromium_src-b714b8c580cd67b647b339eae3bda6ec598addae.zip chromium_src-b714b8c580cd67b647b339eae3bda6ec598addae.tar.gz chromium_src-b714b8c580cd67b647b339eae3bda6ec598addae.tar.bz2 |
Rebase ThaiUTF8 unit test.
TEST=unit_tests
BUG=50705
http://codereview.chromium.org/3085005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/snippet_unittest.cc')
-rw-r--r-- | chrome/browser/history/snippet_unittest.cc | 96 |
1 files changed, 47 insertions, 49 deletions
diff --git a/chrome/browser/history/snippet_unittest.cc b/chrome/browser/history/snippet_unittest.cc index 8dae0a5..eaf9f5f 100644 --- a/chrome/browser/history/snippet_unittest.cc +++ b/chrome/browser/history/snippet_unittest.cc @@ -162,10 +162,7 @@ TEST(Snippets, UTF8) { UTF16ToUTF8(BuildSnippet(kSampleDocument, "relationship"))); } -// Bug http://crbug.com/50705. -// Fails consistently. From the report, "Broken by latest ICU. Need new expected -// results." -TEST(Snippets, FAILS_ThaiUTF8) { +TEST(Snippets, ThaiUTF8) { // There are 3 instances of '\u0E43\u0E2B\u0E49' // (\xE0\xB9\x83\xE0\xB8\xAB\xE0\xB9\x89) in kThaiSample. // The 1st is more than |kSniipetContext| graphemes away from the @@ -173,53 +170,54 @@ TEST(Snippets, FAILS_ThaiUTF8) { // the 2nd match added, the snippet goes over the size limit so that // the snippet ends right before the 3rd match. ASSERT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