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:
parent
738237e877
commit
777bae581a
@ -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);
|
||||
|
@ -29,4 +29,4 @@
|
||||
|
||||
var iterator = Intl.v8BreakIterator(['xx']);
|
||||
|
||||
assertEquals(iterator.resolvedOptions().locale, getDefaultLocale());
|
||||
assertEquals(iterator.resolvedOptions().locale, %GetDefaultICULocale());
|
||||
|
@ -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);
|
||||
|
@ -29,4 +29,4 @@
|
||||
|
||||
var collator = Intl.Collator(['xx']);
|
||||
|
||||
assertEquals(collator.resolvedOptions().locale, getDefaultLocale());
|
||||
assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
|
||||
|
@ -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);
|
||||
|
@ -29,4 +29,4 @@
|
||||
|
||||
var dtf = Intl.DateTimeFormat(['xx']);
|
||||
|
||||
assertEquals(dtf.resolvedOptions().locale, getDefaultLocale());
|
||||
assertEquals(dtf.resolvedOptions().locale, %GetDefaultICULocale());
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -29,4 +29,4 @@
|
||||
|
||||
var nf = Intl.NumberFormat(['xx']);
|
||||
|
||||
assertEquals(nf.resolvedOptions().locale, getDefaultLocale());
|
||||
assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user