summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch12/12.2/12.2.3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/intl402/ch12/12.2/12.2.3.js')
-rw-r--r--test/suite/intl402/ch12/12.2/12.2.3.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/suite/intl402/ch12/12.2/12.2.3.js b/test/suite/intl402/ch12/12.2/12.2.3.js
new file mode 100644
index 000000000..333d97ae8
--- /dev/null
+++ b/test/suite/intl402/ch12/12.2/12.2.3.js
@@ -0,0 +1,19 @@
+// Copyright 2012 Google Inc. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @description Tests the internal properties of Intl.DateTimeFormat.
+ * @author: Roozbeh Pournader
+ */
+
+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');
+}
+
+// FIXME: Find a way to check that [[relevantExtensionKeys]] === ['ca', 'nu']
+
+// FIXME: Find a way to check specified properties of [[localeData]]
+