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

Side by Side Diff: test/mjsunit/regress/regress-487322.js

Issue 1529363005: tzname check fix (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: todo comment added for Etc/GMT{offset} Created 5 years 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
« no previous file with comments | « src/messages.h ('k') | test/mjsunit/regress/regress-crbug-364374.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 if (this.Intl) {
6 // Normalizes Kat{h,}mandu (chromium:487322)
7 df = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Katmandu'})
8 assertEquals('Asia/Katmandu', df.resolvedOptions().timeZone);
9
10 df = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Kathmandu'})
11 assertEquals('Asia/Katmandu', df.resolvedOptions().timeZone);
12
13 // Throws for unsupported time zones.
14 assertThrows(() => Intl.DateTimeFormat(undefined, {timeZone: 'Aurope/Paris'})) ;
15 }
OLDNEW
« no previous file with comments | « src/messages.h ('k') | test/mjsunit/regress/regress-crbug-364374.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698