Commit 6ecd9702 authored by Jungshik Shin's avatar Jungshik Shin Committed by Commit Bot

Add a test for a huge time value and month display


Bug: chromium:801602
Test: intl/date-format/month-far-future.js
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Ie2279680e8879c943cbf0873a933d2633e759212
Reviewed-on: https://chromium-review.googlesource.com/868376Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Jungshik Shin <jshin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50914}
parent 6ff29275
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Test for crbug.com/801602 .
var locales = [
"en-u-ca-gregori",
"fa-u-ca-persian",
"ar-u-ca-islamic-civil",
"ar-u-ca-islamic-umalqura",
"ar-u-ca-islamic-tbla",
"ar-u-ca-islamic-rgsa",
"he-u-ca-hebrew",
"zh-u-ca-chinese",
"ko-u-ca-dangi",
"ja-u-ca-japanese",
"am-u-ca-ethiopic",
"am-u-ca-ethioaa",
"hi-u-ca-indian",
"th-u-ca-buddhist",
];
var hugeNum = 1.7976931348623157e+308;
locales.forEach(function(loc) {
var df = new Intl.DateTimeFormat(loc, {month: "long"});
assertFalse(df.format(hugeNum) == '');
}
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment