blob: 98ee05b9b7bcdb231c92207582a7bff007992a51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2012 Google Inc. All rights reserved.
// 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
*/
var testcase = function() {
"use strict";
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');
}
// FIXME: Find a way to check that [[relevantExtensionKeys]] === ['nu']
// FIXME: Find a way to check specified properties of [[localeData]]
return true;
}
runTestCase(testcase);
|