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

Side by Side Diff: third_party/WebKit/Source/platform/text/LocaleMacTest.cpp

Issue 2385283002: reflow comments in platform/{testing,text} (Closed)
Patch Set: idunnolol Created 4 years, 2 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
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 shortStandAloneMonthLabel("ja_JP", 0).utf8().data()); 372 shortStandAloneMonthLabel("ja_JP", 0).utf8().data());
373 EXPECT_STREQ("12\xE6\x9C\x88", shortMonthLabel("ja_JP", 11).utf8().data()); 373 EXPECT_STREQ("12\xE6\x9C\x88", shortMonthLabel("ja_JP", 11).utf8().data());
374 EXPECT_STREQ("12\xE6\x9C\x88", 374 EXPECT_STREQ("12\xE6\x9C\x88",
375 shortStandAloneMonthLabel("ja_JP", 11).utf8().data()); 375 shortStandAloneMonthLabel("ja_JP", 11).utf8().data());
376 376
377 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x80\xD1\x82\xD0\xB0", 377 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x80\xD1\x82\xD0\xB0",
378 shortMonthLabel("ru_RU", 2).utf8().data()); 378 shortMonthLabel("ru_RU", 2).utf8().data());
379 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x8F", 379 EXPECT_STREQ("\xD0\xBC\xD0\xB0\xD1\x8F",
380 shortMonthLabel("ru_RU", 4).utf8().data()); 380 shortMonthLabel("ru_RU", 4).utf8().data());
381 // The ru_RU locale returns different stand-alone month labels on OS versions. 381 // The ru_RU locale returns different stand-alone month labels on OS versions.
382 // "\xD0\xBC\xD0\xB0\xD1\x80\xD1\x82" "\xD0\xBC\xD0\xB0\xD0\xB9" on 10.6 and 10.7 382 // "\xD0\xBC\xD0\xB0\xD1\x80\xD1\x82" "\xD0\xBC\xD0\xB0\xD0\xB9" on 10.7
383 // "\xD0\x9C\xD0\xB0\xD1\x80\xD1\x82" "\xD0\x9C\xD0\xB0\xD0\xB9" on 10.8 383 // "\xD0\x9C\xD0\xB0\xD1\x80\xD1\x82" "\xD0\x9C\xD0\xB0\xD0\xB9" on 10.8
384 } 384 }
385 385
386 TEST_F(LocaleMacTest, timeAMPMLabels) { 386 TEST_F(LocaleMacTest, timeAMPMLabels) {
387 EXPECT_STREQ("AM", timeAMPMLabel("en_US", 0).utf8().data()); 387 EXPECT_STREQ("AM", timeAMPMLabel("en_US", 0).utf8().data());
388 EXPECT_STREQ("PM", timeAMPMLabel("en_US", 1).utf8().data()); 388 EXPECT_STREQ("PM", timeAMPMLabel("en_US", 1).utf8().data());
389 389
390 EXPECT_STREQ("AM", timeAMPMLabel("fr_FR", 0).utf8().data()); 390 EXPECT_STREQ("AM", timeAMPMLabel("fr_FR", 0).utf8().data());
391 EXPECT_STREQ("PM", timeAMPMLabel("fr_FR", 1).utf8().data()); 391 EXPECT_STREQ("PM", timeAMPMLabel("fr_FR", 1).utf8().data());
392 392
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 testNumbers("es_ES"); 436 testNumbers("es_ES");
437 testNumbers("fa"); 437 testNumbers("fa");
438 testNumbers("ja_JP"); 438 testNumbers("ja_JP");
439 testNumbers("ko_KR"); 439 testNumbers("ko_KR");
440 testNumbers("zh_CN"); 440 testNumbers("zh_CN");
441 testNumbers("zh_HK"); 441 testNumbers("zh_HK");
442 testNumbers("zh_TW"); 442 testNumbers("zh_TW");
443 } 443 }
444 444
445 } // namespace blink 445 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698