Commit 5aa5258e authored by littledan's avatar littledan Committed by Commit bot

Enable some passing, disabled Intl tests

A couple of the Intl tests made calls to getDefaultTimeZone(), which
doesn't exist in V8; however, these were not core to the test. Rather
than marking the whole test as failing, just comment out that
unimportant part of the test.

R=adamk

Review URL: https://codereview.chromium.org/1522533003

Cr-Commit-Position: refs/heads/master@{#32819}
parent a229c9b9
......@@ -38,7 +38,8 @@ assertEquals('latn', resolved.numberingSystem);
assertTrue(resolved.hasOwnProperty('calendar'));
assertEquals('gregory', resolved.calendar);
assertTrue(resolved.hasOwnProperty('timeZone'));
assertEquals(getDefaultTimeZone(), resolved.timeZone);
// TODO(littledan): getDefaultTimeZone() is not available from JavaScript
// assertEquals(getDefaultTimeZone(), resolved.timeZone);
// These are in by default.
assertTrue(resolved.hasOwnProperty('year'));
assertEquals('numeric', resolved.year);
......
......@@ -27,8 +27,9 @@
// Tests time zone support.
var df = Intl.DateTimeFormat();
assertEquals(getDefaultTimeZone(), df.resolvedOptions().timeZone);
// TODO(littledan): getDefaultTimeZone() is not available from JavaScript
// var df = Intl.DateTimeFormat();
// assertEquals(getDefaultTimeZone(), df.resolvedOptions().timeZone);
df = Intl.DateTimeFormat(undefined, {timeZone: 'UtC'});
assertEquals('UTC', df.resolvedOptions().timeZone);
......
......@@ -27,11 +27,6 @@
[
[ALWAYS, {
# The following tests use getDefaultTimeZone().
'date-format/resolved-options': [FAIL],
'date-format/timezone': [FAIL],
'general/v8Intl-exists': [FAIL],
# TODO(jochen): The following test is flaky.
'overrides/caching': [PASS, FAIL],
......
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