Commit 777bae58 authored by jochen@chromium.org's avatar jochen@chromium.org

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
parent 738237e8
...@@ -38,7 +38,7 @@ assertFalse(options.locale === ''); ...@@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined); assertFalse(options.locale === undefined);
// Then check for equality. // Then check for equality.
assertEquals(options.locale, getDefaultLocale()); assertEquals(options.locale, %GetDefaultICULocale());
var iteratorNone = new Intl.v8BreakIterator(); var iteratorNone = new Intl.v8BreakIterator();
assertEquals(options.locale, iteratorNone.resolvedOptions().locale); assertEquals(options.locale, iteratorNone.resolvedOptions().locale);
......
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
var iterator = Intl.v8BreakIterator(['xx']); var iterator = Intl.v8BreakIterator(['xx']);
assertEquals(iterator.resolvedOptions().locale, getDefaultLocale()); assertEquals(iterator.resolvedOptions().locale, %GetDefaultICULocale());
...@@ -38,7 +38,7 @@ assertFalse(options.locale === ''); ...@@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined); assertFalse(options.locale === undefined);
// Then check for equality. // Then check for equality.
assertEquals(options.locale, getDefaultLocale()); assertEquals(options.locale, %GetDefaultICULocale());
var collatorNone = new Intl.Collator(); var collatorNone = new Intl.Collator();
assertEquals(options.locale, collatorNone.resolvedOptions().locale); assertEquals(options.locale, collatorNone.resolvedOptions().locale);
...@@ -48,5 +48,5 @@ var collatorBraket = new Intl.Collator({}); ...@@ -48,5 +48,5 @@ var collatorBraket = new Intl.Collator({});
assertEquals(options.locale, collatorBraket.resolvedOptions().locale); assertEquals(options.locale, collatorBraket.resolvedOptions().locale);
var collatorWithOptions = new Intl.Collator(undefined, {usage: 'search'}); var collatorWithOptions = new Intl.Collator(undefined, {usage: 'search'});
assertEquals(getDefaultLocale() + '-u-co-search', assertEquals(%GetDefaultICULocale() + '-u-co-search',
collatorWithOptions.resolvedOptions().locale); collatorWithOptions.resolvedOptions().locale);
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
var collator = Intl.Collator(['xx']); var collator = Intl.Collator(['xx']);
assertEquals(collator.resolvedOptions().locale, getDefaultLocale()); assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
...@@ -38,7 +38,7 @@ assertFalse(options.locale === ''); ...@@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined); assertFalse(options.locale === undefined);
// Then check for equality. // Then check for equality.
assertEquals(options.locale, getDefaultLocale()); assertEquals(options.locale, %GetDefaultICULocale());
var dtfNone = new Intl.DateTimeFormat(); var dtfNone = new Intl.DateTimeFormat();
assertEquals(options.locale, dtfNone.resolvedOptions().locale); assertEquals(options.locale, dtfNone.resolvedOptions().locale);
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
var dtf = Intl.DateTimeFormat(['xx']); var dtf = Intl.DateTimeFormat(['xx']);
assertEquals(dtf.resolvedOptions().locale, getDefaultLocale()); assertEquals(dtf.resolvedOptions().locale, %GetDefaultICULocale());
...@@ -27,14 +27,7 @@ ...@@ -27,14 +27,7 @@
prefix intl prefix intl
# The following tests use getDefaultLocale() or getDefaultTimezone(). # The following tests use 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
date-format/resolved-options: FAIL date-format/resolved-options: FAIL
date-format/timezone: FAIL date-format/timezone: FAIL
date-format/wellformed-unsupported-locale: FAIL general/v8Intl-exists: FAIL
number-format/default-locale: FAIL
number-format/wellformed-unsupported-locale: FAIL
...@@ -38,7 +38,7 @@ assertFalse(options.locale === ''); ...@@ -38,7 +38,7 @@ assertFalse(options.locale === '');
assertFalse(options.locale === undefined); assertFalse(options.locale === undefined);
// Then check for equality. // Then check for equality.
assertEquals(options.locale, getDefaultLocale()); assertEquals(options.locale, %GetDefaultICULocale());
var nfNone = new Intl.NumberFormat(); var nfNone = new Intl.NumberFormat();
assertEquals(options.locale, nfNone.resolvedOptions().locale); assertEquals(options.locale, nfNone.resolvedOptions().locale);
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,4 @@
var nf = Intl.NumberFormat(['xx']); var nf = Intl.NumberFormat(['xx']);
assertEquals(nf.resolvedOptions().locale, getDefaultLocale()); assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());
...@@ -52,7 +52,7 @@ class IntlTestSuite(testsuite.TestSuite): ...@@ -52,7 +52,7 @@ class IntlTestSuite(testsuite.TestSuite):
return tests return tests
def GetFlagsForTestCase(self, testcase, context): def GetFlagsForTestCase(self, testcase, context):
flags = [] + context.mode_flags flags = ["--allow-natives-syntax"] + context.mode_flags
files = [] files = []
files.append(os.path.join(self.root, "assert.js")) files.append(os.path.join(self.root, "assert.js"))
......
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