Reenable tests that need to access the default timezone.

It's now available via builtins.

BUG=v8:2475
R=mstarzinger@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16016 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jochen@chromium.org 2013-08-01 19:43:06 +00:00
parent 738237e877
commit 777bae581a
10 changed files with 12 additions and 19 deletions

View File

@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined);
// Then check for equality.
assertEquals(options.locale, getDefaultLocale());
assertEquals(options.locale, %GetDefaultICULocale());
var iteratorNone = new Intl.v8BreakIterator();
assertEquals(options.locale, iteratorNone.resolvedOptions().locale);

View File

@ -29,4 +29,4 @@
var iterator = Intl.v8BreakIterator(['xx']);
assertEquals(iterator.resolvedOptions().locale, getDefaultLocale());
assertEquals(iterator.resolvedOptions().locale, %GetDefaultICULocale());

View File

@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined);
// Then check for equality.
assertEquals(options.locale, getDefaultLocale());
assertEquals(options.locale, %GetDefaultICULocale());
var collatorNone = new Intl.Collator();
assertEquals(options.locale, collatorNone.resolvedOptions().locale);
@ -48,5 +48,5 @@ var collatorBraket = new Intl.Collator({});
assertEquals(options.locale, collatorBraket.resolvedOptions().locale);
var collatorWithOptions = new Intl.Collator(undefined, {usage: 'search'});
assertEquals(getDefaultLocale() + '-u-co-search',
assertEquals(%GetDefaultICULocale() + '-u-co-search',
collatorWithOptions.resolvedOptions().locale);

View File

@ -29,4 +29,4 @@
var collator = Intl.Collator(['xx']);
assertEquals(collator.resolvedOptions().locale, getDefaultLocale());
assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());

View File

@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined);
// Then check for equality.
assertEquals(options.locale, getDefaultLocale());
assertEquals(options.locale, %GetDefaultICULocale());
var dtfNone = new Intl.DateTimeFormat();
assertEquals(options.locale, dtfNone.resolvedOptions().locale);

View File

@ -29,4 +29,4 @@
var dtf = Intl.DateTimeFormat(['xx']);
assertEquals(dtf.resolvedOptions().locale, getDefaultLocale());
assertEquals(dtf.resolvedOptions().locale, %GetDefaultICULocale());

View File

@ -27,14 +27,7 @@
prefix intl
# The following tests use getDefaultLocale() or getDefaultTimezone().
break-iterator/default-locale: FAIL
break-iterator/wellformed-unsupported-locale: FAIL
collator/default-locale: FAIL
collator/wellformed-unsupported-locale: FAIL
date-format/default-locale: FAIL
# The following tests use getDefaultTimeZone().
date-format/resolved-options: FAIL
date-format/timezone: FAIL
date-format/wellformed-unsupported-locale: FAIL
number-format/default-locale: FAIL
number-format/wellformed-unsupported-locale: FAIL
general/v8Intl-exists: FAIL

View File

@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined);
// Then check for equality.
assertEquals(options.locale, getDefaultLocale());
assertEquals(options.locale, %GetDefaultICULocale());
var nfNone = new Intl.NumberFormat();
assertEquals(options.locale, nfNone.resolvedOptions().locale);

View File

@ -29,4 +29,4 @@
var nf = Intl.NumberFormat(['xx']);
assertEquals(nf.resolvedOptions().locale, getDefaultLocale());
assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());

View File

@ -52,7 +52,7 @@ class IntlTestSuite(testsuite.TestSuite):
return tests
def GetFlagsForTestCase(self, testcase, context):
flags = [] + context.mode_flags
flags = ["--allow-natives-syntax"] + context.mode_flags
files = []
files.append(os.path.join(self.root, "assert.js"))