summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch13/13.2/13.2.3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/intl402/ch13/13.2/13.2.3.js')
-rw-r--r--test/suite/intl402/ch13/13.2/13.2.3.js25
1 files changed, 9 insertions, 16 deletions
diff --git a/test/suite/intl402/ch13/13.2/13.2.3.js b/test/suite/intl402/ch13/13.2/13.2.3.js
index 56f9eadf5..333d97ae8 100644
--- a/test/suite/intl402/ch13/13.2/13.2.3.js
+++ b/test/suite/intl402/ch13/13.2/13.2.3.js
@@ -2,25 +2,18 @@
// This code is governed by the BSD license found in the LICENSE file.
/**
- * @path intl402/ch13/13.2/13.2.3.js
- * @description Tests the internal properties of Intl.DateTimeFormat
+ * @description Tests the internal properties of Intl.DateTimeFormat.
* @author: Roozbeh Pournader
*/
-var testcase = function() {
- "use strict";
-
- var defaultLocale = (new Intl.LocaleList())[0];
- var supportedLocales = Intl.DateTimeFormat.supportedLocalesOf([defaultLocale]);
+var defaultLocale = new Intl.DateTimeFormat([]).resolvedOptions().locale;
+var supportedLocales = Intl.DateTimeFormat.supportedLocalesOf([defaultLocale]);
- if (supportedLocales.length < 1 || supportedLocales[0] != defaultLocale) {
- $ERROR('The default Locale is not supported by Intl.DateTimeFormat');
- }
+if (supportedLocales.length < 1 || supportedLocales[0] !== defaultLocale) {
+ $ERROR('The default locale is not supported by Intl.DateTimeFormat');
+}
- // FIXME: Find a way to check that [[relevantExtensionKeys]] === ['ca', 'nu']
-
- // FIXME: Find a way to check specified properties of [[localeData]]
+// FIXME: Find a way to check that [[relevantExtensionKeys]] === ['ca', 'nu']
- return true;
-}
-runTestCase(testcase);
+// FIXME: Find a way to check specified properties of [[localeData]]
+