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

Side by Side Diff: Source/web/tests/LocaleICUTest.cpp

Issue 403393004: Update Layout test and webkit test after ICU52 roll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 EXPECT_STREQ("janv.", shortStandAloneMonthLabel("fr_FR", 0).utf8().data()); 202 EXPECT_STREQ("janv.", shortStandAloneMonthLabel("fr_FR", 0).utf8().data());
203 EXPECT_STREQ("d\xC3\xA9" "c.", shortMonthLabel("fr_FR", 11).utf8().data()); 203 EXPECT_STREQ("d\xC3\xA9" "c.", shortMonthLabel("fr_FR", 11).utf8().data());
204 EXPECT_STREQ("d\xC3\xA9" "c.", shortStandAloneMonthLabel("fr_FR", 11).utf8() .data()); 204 EXPECT_STREQ("d\xC3\xA9" "c.", shortStandAloneMonthLabel("fr_FR", 11).utf8() .data());
205 205
206 EXPECT_STREQ("1\xE6\x9C\x88", shortMonthLabel("ja_JP", 0).utf8().data()); 206 EXPECT_STREQ("1\xE6\x9C\x88", shortMonthLabel("ja_JP", 0).utf8().data());
207 EXPECT_STREQ("1\xE6\x9C\x88", shortStandAloneMonthLabel("ja_JP", 0).utf8().d ata()); 207 EXPECT_STREQ("1\xE6\x9C\x88", shortStandAloneMonthLabel("ja_JP", 0).utf8().d ata());
208 EXPECT_STREQ("12\xE6\x9C\x88", shortMonthLabel("ja_JP", 11).utf8().data()); 208 EXPECT_STREQ("12\xE6\x9C\x88", shortMonthLabel("ja_JP", 11).utf8().data());
209 EXPECT_STREQ("12\xE6\x9C\x88", shortStandAloneMonthLabel("ja_JP", 11).utf8() .data()); 209 EXPECT_STREQ("12\xE6\x9C\x88", shortStandAloneMonthLabel("ja_JP", 11).utf8() .data());
210 210
211 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x80\xD1\x82\xD0\xB0", shortMonthLabel("ru _RU", 2).utf8().data()); 211 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x80\xD1\x82\xD0\xB0", shortMonthLabel("ru _RU", 2).utf8().data());
212 #if 0
213 // TODO(jshin): Disable these temporarily until ICU update is completed.
214 // See http://crbug.com/377042
215 EXPECT_STREQ("\xD0\x9C\xD0\xB0\xD1\x80\xD1\x82", shortStandAloneMonthLabel(" ru_RU", 2).utf8().data()); 212 EXPECT_STREQ("\xD0\x9C\xD0\xB0\xD1\x80\xD1\x82", shortStandAloneMonthLabel(" ru_RU", 2).utf8().data());
216 #endif
217 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x8F", shortMonthLabel("ru_RU", 4).utf8(). data()); 213 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x8F", shortMonthLabel("ru_RU", 4).utf8(). data());
218 #if 0
219 // Same as above
220 EXPECT_STREQ("\xD0\x9C\xD0\xB0\xD0\xB9", shortStandAloneMonthLabel("ru_RU", 4).utf8().data()); 214 EXPECT_STREQ("\xD0\x9C\xD0\xB0\xD0\xB9", shortStandAloneMonthLabel("ru_RU", 4).utf8().data());
221 #endif
222 } 215 }
223 216
224 TEST_F(LocaleICUTest, timeAMPMLabels) 217 TEST_F(LocaleICUTest, timeAMPMLabels)
225 { 218 {
226 EXPECT_EQ(labels("AM", "PM"), timeAMPMLabels("en_US")); 219 EXPECT_EQ(labels("AM", "PM"), timeAMPMLabels("en_US"));
227 EXPECT_EQ(labels("AM", "PM"), timeAMPMLabels("fr")); 220 EXPECT_EQ(labels("AM", "PM"), timeAMPMLabels("fr"));
228 221
229 UChar jaAM[3] = { 0x5348, 0x524d, 0 }; 222 UChar jaAM[3] = { 0x5348, 0x524d, 0 };
230 UChar jaPM[3] = { 0x5348, 0x5F8C, 0 }; 223 UChar jaPM[3] = { 0x5348, 0x5F8C, 0 };
231 EXPECT_EQ(labels(String(jaAM), String(jaPM)), timeAMPMLabels("ja")); 224 EXPECT_EQ(labels(String(jaAM), String(jaPM)), timeAMPMLabels("ja"));
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // Test some of major locales. 273 // Test some of major locales.
281 testNumbers("ar"); 274 testNumbers("ar");
282 testNumbers("de_DE"); 275 testNumbers("de_DE");
283 testNumbers("es_ES"); 276 testNumbers("es_ES");
284 testNumbers("ja_JP"); 277 testNumbers("ja_JP");
285 testNumbers("ko_KR"); 278 testNumbers("ko_KR");
286 testNumbers("zh_CN"); 279 testNumbers("zh_CN");
287 testNumbers("zh_HK"); 280 testNumbers("zh_HK");
288 testNumbers("zh_TW"); 281 testNumbers("zh_TW");
289 } 282 }
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698