summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch10/10.2/10.2.3.js
blob: c281491a0decf569f80e123614d69c605354456a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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.Collator.
 */

var defaultLocale = new Intl.Collator([]).resolvedOptions().locale;
var supportedLocales = Intl.Collator.supportedLocalesOf([defaultLocale]);

if (supportedLocales.length < 1 || supportedLocales[0] !== defaultLocale) {
    $ERROR('The default locale is not supported by Intl.Collator');
}

// FIXME: Find a way to check [[relevantExtensionKeys]]

// FIXME: Find a way to check specified properties of [[localeData]]