diff options
author | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-08-22 17:53:26 -0700 |
---|---|---|
committer | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-08-22 17:53:26 -0700 |
commit | b8c591008f671c8675d46e60c39704d9098811a7 (patch) | |
tree | 2209cc34ae5caca04afaeadbf7483c7d2c2d8065 /test/suite/intl402/ch11/11.2/11.2.3.js | |
parent | ccbb3ad3c0433311c7d4032441dcd0f0c24d1025 (diff) | |
download | test262-b8c591008f671c8675d46e60c39704d9098811a7.tar.gz |
Updated existing tests for June 2012 spec changes; removed LocaleList tests; fixed minor issues.
- Removed LocaleList tests; updated other tests so they don't depend on LocaleList.
- Updated tests so they no longer assume that the prototype object of a constructor is an instance of that constructor.
- Updated tests so that jshint is happy.
- Removed @path attributes from test files; updated comment in packager.py explaining why they're unnecessary.
- Removed "use strict" statements, which interfere with strict/non-strict testing.
- Removed testcase functions, which are unnecessary.
Diffstat (limited to 'test/suite/intl402/ch11/11.2/11.2.3.js')
-rw-r--r-- | test/suite/intl402/ch11/11.2/11.2.3.js | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/test/suite/intl402/ch11/11.2/11.2.3.js b/test/suite/intl402/ch11/11.2/11.2.3.js index 98ee05b9b..c281491a0 100644 --- a/test/suite/intl402/ch11/11.2/11.2.3.js +++ b/test/suite/intl402/ch11/11.2/11.2.3.js @@ -2,24 +2,17 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch11/11.2/11.2.3.js - * @description Tests the internal properties of Intl.NumberFormat + * @description Tests the internal properties of Intl.Collator. */ -var testcase = function() { - "use strict"; +var defaultLocale = new Intl.Collator([]).resolvedOptions().locale; +var supportedLocales = Intl.Collator.supportedLocalesOf([defaultLocale]); - var defaultLocale = (new Intl.LocaleList())[0]; - var supportedLocales = Intl.Collator.supportedLocalesOf([defaultLocale]); - - if (supportedLocales.length < 1 || supportedLocales[0] != defaultLocale) { - $ERROR('The default Locale is not supported by Intl.Collator'); - } +if (supportedLocales.length < 1 || supportedLocales[0] !== defaultLocale) { + $ERROR('The default locale is not supported by Intl.Collator'); +} - // FIXME: Find a way to check that [[relevantExtensionKeys]] === ['nu'] +// FIXME: Find a way to check [[relevantExtensionKeys]] - // FIXME: Find a way to check specified properties of [[localeData]] +// FIXME: Find a way to check specified properties of [[localeData]] - return true; -} -runTestCase(testcase); |