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

Issue 7003028: Added a test checking for TimeFormat:: producing NaN, rolled icu version (Closed)

Created:
9 years, 7 months ago by Joao da Silva
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ahendrickson
Visibility:
Public.

Description

Added a test verifying that TimeFormat:: functions convert numbers to "NaN" on certain locales. This is a bug on icu. Rolled third_party/icu version to @88321. BUG=60476 TEST=browser_tests:TimeFormat.DecimalPointNotDot Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88329

Patch Set 1 #

Total comments: 2

Patch Set 2 : Restore locale after the test. #

Total comments: 3

Patch Set 3 : Moved to a dedicated browser_test. #

Total comments: 1

Patch Set 4 : Rebased, test not failing, rolled icu revision #

Patch Set 5 : Small fixes. #

Patch Set 6 : Rebased #

Patch Set 7 : Rebase again... #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -22 lines) Patch
M DEPS View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M base/base.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/sys_string_conversions_unittest.cc View 1 2 4 chunks +4 lines, -21 lines 0 comments Download
A base/test/test_util.h View 1 2 3 4 1 chunk +41 lines, -0 lines 4 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/time_format_browsertest.cc View 1 2 3 1 chunk +42 lines, -0 lines 4 comments Download

Messages

Total messages: 12 (0 generated)
Joao da Silva
A fix for ICU is at http://codereview.chromium.org/7004021. Once ICU is fixed, the FAILS_ prefix can ...
9 years, 7 months ago (2011-05-11 14:32:18 UTC) #1
Paweł Hajdan Jr.
Drive-by with a testing comment. http://codereview.chromium.org/7003028/diff/1/chrome/common/time_format_unittest.cc File chrome/common/time_format_unittest.cc (right): http://codereview.chromium.org/7003028/diff/1/chrome/common/time_format_unittest.cc#newcode85 chrome/common/time_format_unittest.cc:85: locale = setlocale(LC_ALL, locales[i]); ...
9 years, 7 months ago (2011-05-11 14:47:13 UTC) #2
Joao da Silva
Paweł: updated to restore the locale after the test, please have another look. http://codereview.chromium.org/7003028/diff/1/chrome/common/time_format_unittest.cc File ...
9 years, 7 months ago (2011-05-11 15:35:07 UTC) #3
Paweł Hajdan Jr.
http://codereview.chromium.org/7003028/diff/5001/chrome/common/time_format_unittest.cc File chrome/common/time_format_unittest.cc (right): http://codereview.chromium.org/7003028/diff/5001/chrome/common/time_format_unittest.cc#newcode23 chrome/common/time_format_unittest.cc:23: class ScopedChangeLocale { Sorry for not finding it earlier ...
9 years, 7 months ago (2011-05-11 19:10:44 UTC) #4
jungshik at Google
Hmm... I must be missing something. This is not about parsing but about formatting. And, ...
9 years, 7 months ago (2011-05-12 01:20:08 UTC) #5
Joao da Silva
I've traced this behavior down to a bug in ICU, please have a look at ...
9 years, 7 months ago (2011-05-12 09:20:46 UTC) #6
jungshik at Google
LGTM After checking in the ICU patch, include DEPS file update to roll in the ...
9 years, 6 months ago (2011-06-07 21:46:45 UTC) #7
jungshik at Google
On 2011/06/07 21:46:45, Jungshik Shin wrote: > LGTM > > After checking in the ICU ...
9 years, 6 months ago (2011-06-07 21:47:16 UTC) #8
jungshik at Google
http://codereview.chromium.org/7003028/diff/12001/chrome/common/time_format_browsertest.cc File chrome/common/time_format_browsertest.cc (right): http://codereview.chromium.org/7003028/diff/12001/chrome/common/time_format_browsertest.cc#newcode30 chrome/common/time_format_browsertest.cc:30: IN_PROC_BROWSER_TEST_F(TimeFormatBrowserTest, FAILS_DecimalPointNotDot) { If you include ICU roll (DEPS ...
9 years, 6 months ago (2011-06-07 21:48:01 UTC) #9
commit-bot: I haz the power
Can't process patch for file chrome/chrome_tests.gypi. File's status is None, patchset upload is incomplete.
9 years, 6 months ago (2011-06-08 13:54:18 UTC) #10
commit-bot: I haz the power
Presubmit check for 7003028-18001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-08 14:14:53 UTC) #11
Paweł Hajdan Jr.
9 years, 6 months ago (2011-06-09 08:43:22 UTC) #12
Thank you for working on this. Please fix the issues below _and_ let me take
another look before this gets committed (base/test/OWNERS).

http://codereview.chromium.org/7003028/diff/18001/base/test/test_util.h
File base/test/test_util.h (right):

http://codereview.chromium.org/7003028/diff/18001/base/test/test_util.h#newcode9
base/test/test_util.h:9: // Generic utilities used only by tests.
Please don't add yet another _util file. How about naming it scoped_locale.h?
Also, please split it into .h and .cc file, with most of the implementation in
the .cc file.

http://codereview.chromium.org/7003028/diff/18001/base/test/test_util.h#newco...
base/test/test_util.h:23: explicit ScopedSetLocale(const char* locale) {
nit: Could you change the type of the parameter to const std::string& or maybe
StringPiece to make it easier to pass strings there without c_str?

http://codereview.chromium.org/7003028/diff/18001/base/test/test_util.h#newco...
base/test/test_util.h:25: setlocale(LC_ALL, locale);
Please check the return value. NULL would indicate failure.

http://codereview.chromium.org/7003028/diff/18001/base/test/test_util.h#newco...
base/test/test_util.h:26: }
nit: Add empty line below.

http://codereview.chromium.org/7003028/diff/18001/chrome/common/time_format_b...
File chrome/common/time_format_browsertest.cc (right):

http://codereview.chromium.org/7003028/diff/18001/chrome/common/time_format_b...
chrome/common/time_format_browsertest.cc:19: #if defined(OS_POSIX)
Please handle only running on POSIX in gyp, not in the .cc file.

http://codereview.chromium.org/7003028/diff/18001/chrome/common/time_format_b...
chrome/common/time_format_browsertest.cc:22: class TimeFormatBrowserTest: public
InProcessBrowserTest {
nit: Space before ":".

http://codereview.chromium.org/7003028/diff/18001/chrome/common/time_format_b...
chrome/common/time_format_browsertest.cc:24: TimeFormatBrowserTest():
scoped_locale_("fr_FR.utf-8") {}
nit: Space before ":", put the ending brace } on its own line.

http://codereview.chromium.org/7003028/diff/18001/chrome/common/time_format_b...
chrome/common/time_format_browsertest.cc:38: EXPECT_EQ(ASCIIToUTF16("1 min"),
one_min) << "fr_FR.utf-8 locale generates "
nit: No need for the << message, EXPECT_EQ handles that.

Powered by Google App Engine
This is Rietveld 408576698