Reenable tests that need to access the default timezone.
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 1 Aug 2013 19:43:06 +0000 (19:43 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 1 Aug 2013 19:43:06 +0000 (19:43 +0000)
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

test/intl/break-iterator/default-locale.js
test/intl/break-iterator/wellformed-unsupported-locale.js
test/intl/collator/default-locale.js
test/intl/collator/wellformed-unsupported-locale.js
test/intl/date-format/default-locale.js
test/intl/date-format/wellformed-unsupported-locale.js
test/intl/intl.status
test/intl/number-format/default-locale.js
test/intl/number-format/wellformed-unsupported-locale.js
test/intl/testcfg.py

index 39a88574fe19efabf017fbad4d4597430bf70811..d8d5aeadb2751059d8119a46735132be0474a6a5 100644 (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);
index 56457b4829239944eeca79e8cee0de9498df1c5f..5ac8fbcd41583f0b36df0b54bd8cae47331f6097 100644 (file)
@@ -29,4 +29,4 @@
 
 var iterator = Intl.v8BreakIterator(['xx']);
 
-assertEquals(iterator.resolvedOptions().locale, getDefaultLocale());
+assertEquals(iterator.resolvedOptions().locale, %GetDefaultICULocale());
index f6ffba8e1d86a5082b6097b01a0e4bfef2b45ca3..db9b1e73304114df4c52933841899f895df1af30 100644 (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);
index ea143fdc6375761c469e399a789c0afc8fc54389..3963d47a61ff85b1cc491a904533e955110d972d 100644 (file)
@@ -29,4 +29,4 @@
 
 var collator = Intl.Collator(['xx']);
 
-assertEquals(collator.resolvedOptions().locale, getDefaultLocale());
+assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
index 2dcb0f8ae7463832d1d08c4ebe617718cd4454b4..8e9b7fcec3e16e0bc4a6ce18d1584d0664f3f02e 100644 (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);
index 8867ec644294ddc3e5ef8b8e8f5ac600284a91db..6f063abbd1a07c404bb4481633ce0e2d03f26d53 100644 (file)
@@ -29,4 +29,4 @@
 
 var dtf = Intl.DateTimeFormat(['xx']);
 
-assertEquals(dtf.resolvedOptions().locale, getDefaultLocale());
+assertEquals(dtf.resolvedOptions().locale, %GetDefaultICULocale());
index b0de06a4b775e6a0bd524667f62b7892fca60048..7ef0abb4d2fe8f2dadedd7822d521da4768e72a3 100644 (file)
 
 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
index 0d5e24dd70628e86385af4b9b50fad1bab332d69..cd67ba724f140ff98d4afe6a726d6cd4f0d5f146 100644 (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);
index e3fe9cc087fa08282a5b4deef6deacd39b8ec25b..195eba4c19e09b218381727a4eeb4302338163c0 100644 (file)
@@ -29,4 +29,4 @@
 
 var nf = Intl.NumberFormat(['xx']);
 
-assertEquals(nf.resolvedOptions().locale, getDefaultLocale());
+assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());
index d25683bed2c752500054f73b60107b1a7bebddff..09d29d0bee066d1fea8e5591ba589a403c537bb4 100644 (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"))