blob: 333d97ae86c2551df016a04f309ecc30efea1f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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]]
|