mirror of https://github.com/tc39/test262.git
Move test data for getLocaleSupportInfo into getLocaleSupportInfo
This commit is contained in:
parent
017fa6d55f
commit
52980ef496
|
@ -97,12 +97,6 @@ function taintArray() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// auxiliary data for getLocaleSupportInfo
|
|
||||||
var languages = ["zh", "es", "en", "hi", "ur", "ar", "ja", "pa"];
|
|
||||||
var scripts = ["Latn", "Hans", "Deva", "Arab", "Jpan", "Hant"];
|
|
||||||
var countries = ["CN", "IN", "US", "PK", "JP", "TW", "HK", "SG"];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets locale support info for the given constructor object, which must be one
|
* Gets locale support info for the given constructor object, which must be one
|
||||||
* of Intl.Collator, Intl.NumberFormat, Intl.DateTimeFormat.
|
* of Intl.Collator, Intl.NumberFormat, Intl.DateTimeFormat.
|
||||||
|
@ -113,6 +107,10 @@ var countries = ["CN", "IN", "US", "PK", "JP", "TW", "HK", "SG"];
|
||||||
* unsupported: array of unsupported language tags
|
* unsupported: array of unsupported language tags
|
||||||
*/
|
*/
|
||||||
function getLocaleSupportInfo(Constructor) {
|
function getLocaleSupportInfo(Constructor) {
|
||||||
|
var languages = ["zh", "es", "en", "hi", "ur", "ar", "ja", "pa"];
|
||||||
|
var scripts = ["Latn", "Hans", "Deva", "Arab", "Jpan", "Hant"];
|
||||||
|
var countries = ["CN", "IN", "US", "PK", "JP", "TW", "HK", "SG"];
|
||||||
|
|
||||||
var allTags = [];
|
var allTags = [];
|
||||||
var i, j, k;
|
var i, j, k;
|
||||||
var language, script, country;
|
var language, script, country;
|
||||||
|
|
Loading…
Reference in New Issue