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

Issue 1529363005: tzname check fix (Closed)

Created:
5 years ago by jungshik at Google
Modified:
4 years, 11 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Timezone name check fix 1. Location names with more than one underscores (e.g. Ho_Chi_Minh) didn't work because of the way capturing works with repeated patterns in RE. It's now supported by changing the RE to capture the whole string and splitting on '_' in the next step. 2. Adds support for location names with a hyphen 3. Adds support for timezone ids with three parts (e.g. American/Argentina/Buenos_Aires) 4. Adds special handling of 'au', 'es' and 'of' in zone ids. They need to be kept in lowercase. (see the full list at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones ) 5. Adds regression tests for all the above and make the existing tests more robust against future ICU changes. ICU canonicalizes zone names to deprecated names, but it may change. ( http://bugs.icu-project.org/trac/ticket/12044 ) BUG=364374 LOG=Y Committed: https://crrev.com/4e18190e690cdee8de2a7d9290ad6b8f45600f4c Cr-Commit-Position: refs/heads/master@{#33097}

Patch Set 1 #

Patch Set 2 : regex + split to validate the input #

Patch Set 3 : hyphen support, regression test #

Patch Set 4 : handle tzids with hyphen; add regression tests #

Patch Set 5 : use === and !== #

Patch Set 6 : make tests more robust against future icu changes #

Patch Set 7 : use crbug for regression test; error msg clean up; test clean up #

Patch Set 8 : todo comment added for Etc/GMT{offset} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -28 lines) Patch
M src/js/i18n.js View 1 2 3 4 5 6 7 4 chunks +59 lines, -12 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-487322.js View 1 2 3 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-364374.js View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-487322.js View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
jungshik at Google
Hi, can you take a look? Thanks
5 years ago (2015-12-18 22:27:37 UTC) #4
jungshik at Google
Hi Dan, can you take a look? Thanks
5 years ago (2015-12-18 22:28:01 UTC) #5
jungshik at Google
adamk@chromium.org: Please take a look.
5 years ago (2015-12-18 23:06:59 UTC) #7
Dan Ehrenberg
lgtm This looks great, thanks!
5 years ago (2015-12-18 23:27:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1529363005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1529363005/140001
5 years ago (2015-12-18 23:27:24 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/9155)
5 years ago (2015-12-18 23:29:39 UTC) #12
adamk
lgtm for OWNERS Curious about the "es", "of", and "au" special-casing. Is that codified somewhere? ...
4 years, 11 months ago (2016-01-04 18:37:15 UTC) #13
jungshik at Google
On 2016/01/04 18:37:15, adamk wrote: > lgtm for OWNERS > > Curious about the "es", ...
4 years, 11 months ago (2016-01-04 21:01:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1529363005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1529363005/140001
4 years, 11 months ago (2016-01-04 21:02:06 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/9409)
4 years, 11 months ago (2016-01-04 21:04:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1529363005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1529363005/140001
4 years, 11 months ago (2016-01-04 21:37:02 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-04 21:47:50 UTC) #26
commit-bot: I haz the power
4 years, 11 months ago (2016-01-04 21:48:15 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4e18190e690cdee8de2a7d9290ad6b8f45600f4c
Cr-Commit-Position: refs/heads/master@{#33097}

Powered by Google App Engine
This is Rietveld 408576698