From 471bb04188338f4e3eb4cd1c6d15f6caaae30574 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sat, 10 Aug 2024 23:49:10 +0800 Subject: [PATCH 01/26] Update definitions.js --- src/lib/definitions.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/lib/definitions.js b/src/lib/definitions.js index 8c1ef0b3..bc83c162 100644 --- a/src/lib/definitions.js +++ b/src/lib/definitions.js @@ -383,6 +383,7 @@ function getFHPaddingEntries(index) var LOCALE_INFINITY = Feature.LOCALE_INFINITY; var LOCALE_NUMERALS = Feature.LOCALE_NUMERALS; var LOCALE_NUMERALS_EXT = Feature.LOCALE_NUMERALS_EXT; + var LOCALE_NUMERALS_IE11_WIN7 = Feature.LOCALE_NUMERALS_IE11_WIN7; var LOCATION = Feature.LOCATION; var MOZILLA = Feature.MOZILLA; var NAME = Feature.NAME; @@ -1299,6 +1300,7 @@ function getFHPaddingEntries(index) '∞': [ define('Infinity[TO_LOCALE_STRING]()', LOCALE_INFINITY), + define('Infinity[TO_LOCALE_STRING]("ja")[1]', LOCALE_NUMERALS_IE11_WIN7), define('Infinity[TO_LOCALE_STRING]("ja")[SLICE_OR_SUBSTR]("-1")', JAPANESE_INFINITY), define('Infinity[TO_LOCALE_STRING]("ja").at("-1")', JAPANESE_INFINITY, AT), defineCharDefault(), @@ -2144,15 +2146,43 @@ function getFHPaddingEntries(index) useLocaleNumeralDefinition('ي', '"ar"', NaN, 1); useLocaleNumeralDefinition('س', '"ar"', NaN, 2); useLocaleNumeralDefinition('ر', '"ar"', NaN, 4, LOCALE_NUMERALS_EXT); + useLocaleNumeralDefinition('ب', '"ar"', NaN, 4, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('ق', '"ar"', NaN, 5, LOCALE_NUMERALS_EXT); + useLocaleNumeralDefinition('ر', '"ar"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('م', '"ar"', NaN, 6, LOCALE_NUMERALS_EXT); + useLocaleNumeralDefinition('ق', '"ar"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('م', '"ar"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ا', '"ar"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ن', '"ar"', Infinity, 4, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ه', '"ar"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ﺓ', '"ar"', Infinity, 8, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDigitDefinitions('"bn"', 0x09e6, LOCALE_NUMERALS_EXT); + useLocaleNumeralDefinition('č', '"cs"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('μ', '"el"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('η', '"el"', NaN, 1, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('α', '"el"', NaN, 3, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ρ', '"el"', NaN, 4, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ι', '"el"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('θ', '"el"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ό', '"el"', NaN, 8, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ς', '"el"', NaN, 9, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('Ά', '"el"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('π', '"el"', Infinity, 1, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ε', '"el"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ο', '"el"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDigitDefinitions('"fa"', 0x06f0); useLocaleNumeralDefinition('٬', '"fa"', 1000, 1); useLocaleNumeralDefinition('ن', '"fa"', NaN, 0, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('ا', '"fa"', NaN, 1, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('ع', '"fa"', NaN, 2, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('د', '"fa"', NaN, 3, LOCALE_NUMERALS_EXT); + useLocaleNumeralDefinition('ל', '"he"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('非', '"ja"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('数', '"ja"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('値', '"ja"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ė', '"lt"', Infinity, 7, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ī', '"lv"', Infinity, 6, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ś', '"pl"', Infinity, 13, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('н', '"ru"', NaN, 0, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('е', '"ru"', NaN, 1, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('ч', '"ru"', NaN, 3, LOCALE_NUMERALS_EXT); @@ -2160,5 +2190,16 @@ function getFHPaddingEntries(index) useLocaleNumeralDefinition('с', '"ru"', NaN, 5, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('л', '"ru"', NaN, 6, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('о', '"ru"', NaN, 7, LOCALE_NUMERALS_EXT); + useLocaleNumeralDefinition('б', '"ru"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('е', '"ru"', NaN, 1, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('с', '"ru"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('к', '"ru"', NaN, 3, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('н', '"ru"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ч', '"ru"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('о', '"ru"', NaN, 9, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('т', '"ru"', NaN, 11, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ь', '"ru"', NaN, 12, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('正', '"zh"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('字', '"zh-cn"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7); } )(); From d47ab814b2d83e127678f38353c49569bfcf9a0f Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 11 Aug 2024 00:05:16 +0800 Subject: [PATCH 02/26] Update features.js --- src/lib/features.js | 58 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index a336de8a..7150ff1f 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -552,6 +552,47 @@ var featureInfos = }, includes: ['LOCALE_NUMERALS'], }, + LOCALE_NUMERALS_IE11_WIN7: + { + description: + 'Localized number formatting exclusive to Interner Explorer 11 in Windows 7.\n' + + 'This includes all features of LOCALE_NUMERALS plus the output of the letters in the ' + + 'second word of the Arabic string representation of NaN ("برقم"), the letters in the ' + + 'Arabic string representation of Infinity ("+لا\xa0نهاية"), the letters in the the Czech ' + + 'string representation of NaN ("Není\xa0číslo"), the letters in the the Greek string ' + + 'representation of NaN ("Άπειρο"), the letters in the Greek string representation of NaN ' + + '("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + + '("לא\xa0מספר"), the characters in the Japanese string representation of Infinity ' + + '("+∞"), the characters in the Japanese string representation of NaN ("NaN\xa0(非数値)"), ' + + 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the ' + + 'letters in the Latvian string representation of Infinity ("bezgalība"), the letters in ' + + 'the Polish string representation of Infinity ("+nieskończoność"), the letters in the ' + + 'Russian string representation of Infinity ("бесконечность"), the characters in the ' + + 'Chinese string representation of Infinity ("正无穷大" or "正無窮大"), the characters in ' + + 'the Simplified Chinese string representation of NaN ("非数字").', + check: + function () + { + var available = + checkLocaleNumeral('ar', NaN, /^ليس برقم/) && + checkLocaleNumeral('ar', Infinity, /^+لا.نهاية/) && + checkLocaleNumeral('ar-td', 234567890.1, /^٢٣٤٬?٥٦٧٬?٨٩٠٫١/) && + checkLocaleNumeral('cz', NaN, /^Není.číslo/) && + checkLocaleNumeral('el', Infinity, /^Άπειρο/) && + checkLocaleNumeral('el', NaN, /^μη.αριθμός/) && + checkLocaleNumeral('he', NaN, /^לא.מספר/) && + checkLocaleNumeral('ja', Infinity, /^+∞/) && + checkLocaleNumeral('ja', NaN, /^NaN.(非数値)/) && + checkLocaleNumeral('lt', Infinity, /^begalybė/) && + checkLocaleNumeral('lv', Infinity, /^bezgalība/) && + checkLocaleNumeral('pl', Infinity, /^+nieskończoność/) && + checkLocaleNumeral('ru', Infinity, /^бесконечность/) && + checkLocaleNumeral('zh', Infinity, /^正/) && + checkLocaleNumeral('zh-cn', NaN, /^非数字/); + return available; + }, + includes: ['LOCALE_NUMERALS'], + }, LOCATION: { description: @@ -1086,13 +1127,14 @@ var featureInfos = versions: ['11'], includes: { - ANY_DOCUMENT: true, - DOCUMENT: false, - GMT: true, - JAPANESE_INFINITY: true, - LOCALE_NUMERALS: true, - PLAIN_INTL: true, - SHORT_LOCALES: true, + ANY_DOCUMENT: true, + DOCUMENT: false, + GMT: true, + JAPANESE_INFINITY: true, + LOCALE_NUMERALS: true, + LOCALE_NUMERALS_IE11_WIN7: true, + PLAIN_INTL: true, + SHORT_LOCALES: true, }, }, IE_11_WIN_10: @@ -1102,7 +1144,7 @@ var featureInfos = compatibilityTag: 'on Windows 10', compatibilityShortTag: 'W10', includes: - { LOCALE_INFINITY: true, LOCALE_NUMERALS: false, LOCALE_NUMERALS_EXT: true }, + { LOCALE_INFINITY: true, LOCALE_NUMERALS: false, LOCALE_NUMERALS_EXT: true, LOCALE_NUMERALS_IE11_WIN7: false }, }, NODE_0_10: { From 5e9e332b89e1f2e980618845bd96e5ef9267abad Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 11 Aug 2024 00:22:57 +0800 Subject: [PATCH 03/26] Update features.js --- src/lib/features.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index 7150ff1f..0d3a2f8f 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -560,8 +560,8 @@ var featureInfos = 'second word of the Arabic string representation of NaN ("برقم"), the letters in the ' + 'Arabic string representation of Infinity ("+لا\xa0نهاية"), the letters in the the Czech ' + 'string representation of NaN ("Není\xa0číslo"), the letters in the the Greek string ' + - 'representation of NaN ("Άπειρο"), the letters in the Greek string representation of NaN ' + - '("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + + 'representation of Infinity ("Άπειρο"), the letters in the Greek string representation of ' + + 'NaN ("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + '("לא\xa0מספר"), the characters in the Japanese string representation of Infinity ' + '("+∞"), the characters in the Japanese string representation of NaN ("NaN\xa0(非数値)"), ' + 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the ' + From 3f4b70b1296d6756fde07ccda053b00dff6c63f2 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 11 Aug 2024 00:40:49 +0800 Subject: [PATCH 04/26] Update feature-emulation.helpers.js --- test/helpers/feature-emulation.helpers.js | 119 ++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/test/helpers/feature-emulation.helpers.js b/test/helpers/feature-emulation.helpers.js index 1c943b0e..59d86d16 100644 --- a/test/helpers/feature-emulation.helpers.js +++ b/test/helpers/feature-emulation.helpers.js @@ -1032,6 +1032,125 @@ } ); }, + LOCALE_NUMERALS_IE11_WIN7: + function () + { + this.arabicNaNString = 'ليس\xa0برقم'; + registerNumberToLocaleStringAdapter + ( + this, + function (locale) + { + var returnValue; + var number; + switch (locale) + { + case 'ar': + case 'ar-td': + number = Number(this); + if (isNaN(number)) + returnValue = 'ليس\xa0برقم'; + else + { + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return '+لا\xa0نهاية'; + case -Infinity: + return '-لا\xa0نهاية'; + } + } + break; + case 'cz': + number = Number(this); + if (isNaN(number)) + returnValue = 'Není\xa0číslo'; + break; + case 'el': + number = Number(this); + if (isNaN(number)) + returnValue = 'μη\xa0αριθμός'; + else + { + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return 'Άπειρο'; + case -Infinity: + return '-Άπειρο'; + } + } + break; + case 'he': + number = Number(this); + if (isNaN(number)) + returnValue = 'לא\xa0מספר'; + break; + case 'ja': + number = Number(this); + if (isNaN(number)) + returnValue = 'NaN\xa0(非数値)'; + else + { + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return '+∞'; + case -Infinity: + return '-∞'; + } + } + break; + case 'lt': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return 'begalybė'; + case -Infinity: + return '-begalybė'; + } + case 'lv': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return 'bezgalība'; + case -Infinity: + return '-bezgalība'; + } + case 'pl': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return '+nieskończoność'; + case -Infinity: + return '-nieskończoność'; + } + case 'ru': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return 'бесконечность'; + case -Infinity: + return '-бесконечность'; + } + case 'zh': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return '正无穷大'; + case -Infinity: + return '负无穷大'; + } + } + case 'zh-cn': + number = Number(this); + if (isNaN(number)) + returnValue = '非数字'; + break; + return returnValue; + } + ); + }, LOCALE_NUMERALS_EXT: function () { From f767d8a0ef8d34892aec826c62d7fca1d42be348 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:22:58 +0800 Subject: [PATCH 05/26] Update features.js --- src/lib/features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/features.js b/src/lib/features.js index 0d3a2f8f..730228ba 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -574,7 +574,7 @@ var featureInfos = function () { var available = - checkLocaleNumeral('ar', NaN, /^ليس برقم/) && + checkLocaleNumeral('ar', NaN, /^ليس.برقم/) && checkLocaleNumeral('ar', Infinity, /^+لا.نهاية/) && checkLocaleNumeral('ar-td', 234567890.1, /^٢٣٤٬?٥٦٧٬?٨٩٠٫١/) && checkLocaleNumeral('cz', NaN, /^Není.číslo/) && From a748e94300d041318056b94cc19724218fb94922 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:31:11 +0800 Subject: [PATCH 06/26] Update definitions.js --- src/lib/definitions.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/definitions.js b/src/lib/definitions.js index bc83c162..408eee31 100644 --- a/src/lib/definitions.js +++ b/src/lib/definitions.js @@ -2190,15 +2190,15 @@ function getFHPaddingEntries(index) useLocaleNumeralDefinition('с', '"ru"', NaN, 5, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('л', '"ru"', NaN, 6, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('о', '"ru"', NaN, 7, LOCALE_NUMERALS_EXT); - useLocaleNumeralDefinition('б', '"ru"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('е', '"ru"', NaN, 1, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('с', '"ru"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('к', '"ru"', NaN, 3, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('н', '"ru"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ч', '"ru"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('о', '"ru"', NaN, 9, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('т', '"ru"', NaN, 11, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ь', '"ru"', NaN, 12, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('б', '"ru"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('е', '"ru"', Infinity, 1, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('с', '"ru"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('к', '"ru"', Infinity, 3, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('н', '"ru"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ч', '"ru"', Infinity, 7, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('о', '"ru"', Infinity, 9, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('т', '"ru"', Infinity, 11, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ь', '"ru"', Infinity, 12, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('正', '"zh"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('字', '"zh-cn"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7); } From 3d416c7da7a40b64e01fc694b3ee1b00794f003e Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:36:01 +0800 Subject: [PATCH 07/26] Update features.js --- src/lib/features.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index 730228ba..82baf244 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -575,17 +575,17 @@ var featureInfos = { var available = checkLocaleNumeral('ar', NaN, /^ليس.برقم/) && - checkLocaleNumeral('ar', Infinity, /^+لا.نهاية/) && + checkLocaleNumeral('ar', Infinity, /^\+لا.نهاية/) && checkLocaleNumeral('ar-td', 234567890.1, /^٢٣٤٬?٥٦٧٬?٨٩٠٫١/) && checkLocaleNumeral('cz', NaN, /^Není.číslo/) && checkLocaleNumeral('el', Infinity, /^Άπειρο/) && checkLocaleNumeral('el', NaN, /^μη.αριθμός/) && checkLocaleNumeral('he', NaN, /^לא.מספר/) && - checkLocaleNumeral('ja', Infinity, /^+∞/) && + checkLocaleNumeral('ja', Infinity, /^\+∞/) && checkLocaleNumeral('ja', NaN, /^NaN.(非数値)/) && checkLocaleNumeral('lt', Infinity, /^begalybė/) && checkLocaleNumeral('lv', Infinity, /^bezgalība/) && - checkLocaleNumeral('pl', Infinity, /^+nieskończoność/) && + checkLocaleNumeral('pl', Infinity, /^\+nieskończoność/) && checkLocaleNumeral('ru', Infinity, /^бесконечность/) && checkLocaleNumeral('zh', Infinity, /^正/) && checkLocaleNumeral('zh-cn', NaN, /^非数字/); From ceffd20da1b181f9c1681cb708190e94d67f0977 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:49:04 +0800 Subject: [PATCH 08/26] Update features.js --- src/lib/features.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index 82baf244..e4e8b01a 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -560,8 +560,8 @@ var featureInfos = 'second word of the Arabic string representation of NaN ("برقم"), the letters in the ' + 'Arabic string representation of Infinity ("+لا\xa0نهاية"), the letters in the the Czech ' + 'string representation of NaN ("Není\xa0číslo"), the letters in the the Greek string ' + - 'representation of Infinity ("Άπειρο"), the letters in the Greek string representation of ' + - 'NaN ("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + + 'representation of Infinity ("Άπειρο"), the letters in the Greek string representation ' + + 'of NaN ("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + '("לא\xa0מספר"), the characters in the Japanese string representation of Infinity ' + '("+∞"), the characters in the Japanese string representation of NaN ("NaN\xa0(非数値)"), ' + 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the ' + @@ -1144,7 +1144,12 @@ var featureInfos = compatibilityTag: 'on Windows 10', compatibilityShortTag: 'W10', includes: - { LOCALE_INFINITY: true, LOCALE_NUMERALS: false, LOCALE_NUMERALS_EXT: true, LOCALE_NUMERALS_IE11_WIN7: false }, + { + LOCALE_INFINITY: true, + LOCALE_NUMERALS: false, + LOCALE_NUMERALS_EXT: true, + LOCALE_NUMERALS_IE11_WIN7: false + }, }, NODE_0_10: { From a0e58f31568d2f4af95511dff149d9003d104484 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:51:28 +0800 Subject: [PATCH 09/26] Update features.js --- src/lib/features.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index e4e8b01a..c2dfbc72 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -1145,10 +1145,10 @@ var featureInfos = compatibilityShortTag: 'W10', includes: { - LOCALE_INFINITY: true, - LOCALE_NUMERALS: false, - LOCALE_NUMERALS_EXT: true, - LOCALE_NUMERALS_IE11_WIN7: false + LOCALE_INFINITY: true, + LOCALE_NUMERALS: false, + LOCALE_NUMERALS_EXT: true, + LOCALE_NUMERALS_IE11_WIN7: false, }, }, NODE_0_10: From 25e3515f2550d4fc169f5de2977c741b81d0654c Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 08:04:54 +0800 Subject: [PATCH 10/26] Update src/lib/features.js Co-authored-by: Francesco Trotta --- src/lib/features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/features.js b/src/lib/features.js index c2dfbc72..fb994827 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -582,7 +582,7 @@ var featureInfos = checkLocaleNumeral('el', NaN, /^μη.αριθμός/) && checkLocaleNumeral('he', NaN, /^לא.מספר/) && checkLocaleNumeral('ja', Infinity, /^\+∞/) && - checkLocaleNumeral('ja', NaN, /^NaN.(非数値)/) && + checkLocaleNumeral('ja', NaN, /^NaN \(非数値\)/) && checkLocaleNumeral('lt', Infinity, /^begalybė/) && checkLocaleNumeral('lv', Infinity, /^bezgalība/) && checkLocaleNumeral('pl', Infinity, /^\+nieskończoność/) && From 1f1e843957ec6cfccc881efa512e15857f1af31d Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:11:58 +0800 Subject: [PATCH 11/26] Update features.js --- src/lib/features.js | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index fb994827..1c4db8c9 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -552,10 +552,27 @@ var featureInfos = }, includes: ['LOCALE_NUMERALS'], }, - LOCALE_NUMERALS_IE11_WIN7: + LOCALE_NUMERALS_IE11_WIN7: { description: 'Localized number formatting exclusive to Interner Explorer 11 in Windows 7.\n' + + 'This includes the letters in the Lithuanian string representation of Infinity ' + + '("begalybė") and the letters in the Russian string representation of Infinity ' + + '("бесконечность").', + check: + function () + { + var available = + checkLocaleNumeral('lt', Infinity, /^begalybė/) && + checkLocaleNumeral('ru', Infinity, /^бесконечность/) && + return available; + }, + includes: ['LOCALE_NUMERALS'], + }, + LOCALE_NUMERALS_IE11_WIN7_8: + { + description: + 'Localized number formatting exclusive to Interner Explorer 11 in Windows 7 and 8.\n' + 'This includes all features of LOCALE_NUMERALS plus the output of the letters in the ' + 'second word of the Arabic string representation of NaN ("برقم"), the letters in the ' + 'Arabic string representation of Infinity ("+لا\xa0نهاية"), the letters in the the Czech ' + @@ -564,12 +581,10 @@ var featureInfos = 'of NaN ("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + '("לא\xa0מספר"), the characters in the Japanese string representation of Infinity ' + '("+∞"), the characters in the Japanese string representation of NaN ("NaN\xa0(非数値)"), ' + - 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the ' + - 'letters in the Latvian string representation of Infinity ("bezgalība"), the letters in ' + - 'the Polish string representation of Infinity ("+nieskończoność"), the letters in the ' + - 'Russian string representation of Infinity ("бесконечность"), the characters in the ' + - 'Chinese string representation of Infinity ("正无穷大" or "正無窮大"), the characters in ' + - 'the Simplified Chinese string representation of NaN ("非数字").', + 'the letters in the Latvian string representation of Infinity ("bezgalība"), the letters ' + + 'in the Polish string representation of Infinity ("+nieskończoność"), the characters in ' + + 'the Chinese string representation of Infinity ("正无穷大" or "正無窮大"), the characters ' + + 'in the Simplified Chinese string representation of NaN ("非数字").', check: function () { @@ -577,16 +592,14 @@ var featureInfos = checkLocaleNumeral('ar', NaN, /^ليس.برقم/) && checkLocaleNumeral('ar', Infinity, /^\+لا.نهاية/) && checkLocaleNumeral('ar-td', 234567890.1, /^٢٣٤٬?٥٦٧٬?٨٩٠٫١/) && - checkLocaleNumeral('cz', NaN, /^Není.číslo/) && + checkLocaleNumeral('cs', NaN, /^Není.číslo/) && checkLocaleNumeral('el', Infinity, /^Άπειρο/) && checkLocaleNumeral('el', NaN, /^μη.αριθμός/) && checkLocaleNumeral('he', NaN, /^לא.מספר/) && checkLocaleNumeral('ja', Infinity, /^\+∞/) && checkLocaleNumeral('ja', NaN, /^NaN \(非数値\)/) && - checkLocaleNumeral('lt', Infinity, /^begalybė/) && checkLocaleNumeral('lv', Infinity, /^bezgalība/) && checkLocaleNumeral('pl', Infinity, /^\+nieskończoność/) && - checkLocaleNumeral('ru', Infinity, /^бесконечность/) && checkLocaleNumeral('zh', Infinity, /^正/) && checkLocaleNumeral('zh-cn', NaN, /^非数字/); return available; From 760ec1e94e7a0dfec9a3672e872e1a91d6f79fa6 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:42:17 +0800 Subject: [PATCH 12/26] Update features.js --- src/lib/features.js | 54 +++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index 1c4db8c9..618ba15d 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -567,7 +567,7 @@ var featureInfos = checkLocaleNumeral('ru', Infinity, /^бесконечность/) && return available; }, - includes: ['LOCALE_NUMERALS'], + includes: ['LOCALE_NUMERALS_IE11_WIN7_8'], }, LOCALE_NUMERALS_IE11_WIN7_8: { @@ -606,6 +606,21 @@ var featureInfos = }, includes: ['LOCALE_NUMERALS'], }, + LOCALE_NUMERALS_IE11_WIN8: + { + description: + 'Localized number formatting exclusive to Interner Explorer 11 in Windows 8.\n' + + 'In this case, Lithuanian and Russian string representation of Infinity are ' + + 'both "∞".', + check: + function () + { + var available = (Infinity.toLocaleString('lt') === '∞') && + (Infinity.toLocaleString('ru') === '∞'); + return available; + }, + includes: ['LOCALE_NUMERALS_IE11_WIN7_8'], + }, LOCATION: { description: @@ -1140,28 +1155,39 @@ var featureInfos = versions: ['11'], includes: { - ANY_DOCUMENT: true, - DOCUMENT: false, - GMT: true, - JAPANESE_INFINITY: true, - LOCALE_NUMERALS: true, - LOCALE_NUMERALS_IE11_WIN7: true, - PLAIN_INTL: true, - SHORT_LOCALES: true, + ANY_DOCUMENT: true, + DOCUMENT: false, + GMT: true, + JAPANESE_INFINITY: true, + LOCALE_NUMERALS: true, + LOCALE_NUMERALS_IE11_WIN7: true, + LOCALE_NUMERALS_IE11_WIN7_8: true, + PLAIN_INTL: true, + SHORT_LOCALES: true, }, }, - IE_11_WIN_10: + IE_11_WIN_8: { inherits: 'IE_11', versions: ['11'], + compatibilityTag: 'on Windows 8', + compatibilityShortTag: 'W8', + includes: + { LOCALE_NUMERALS_IE11_WIN7: false, LOCALE_NUMERALS_IE11_WIN8: true }, + }, + IE_11_WIN_10: + { + inherits: 'IE_11_WIN_8', + versions: ['11'], compatibilityTag: 'on Windows 10', compatibilityShortTag: 'W10', includes: { - LOCALE_INFINITY: true, - LOCALE_NUMERALS: false, - LOCALE_NUMERALS_EXT: true, - LOCALE_NUMERALS_IE11_WIN7: false, + LOCALE_INFINITY: true, + LOCALE_NUMERALS: false, + LOCALE_NUMERALS_EXT: true, + LOCALE_NUMERALS_IE11_WIN7_8: false, + LOCALE_NUMERALS_IE11_WIN8: false, }, }, NODE_0_10: From 7dc440b038fef19c41bf7a8ffce23655ea8225df Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:52:32 +0800 Subject: [PATCH 13/26] Update definitions.js --- src/lib/definitions.js | 61 +++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/src/lib/definitions.js b/src/lib/definitions.js index 408eee31..69d57abc 100644 --- a/src/lib/definitions.js +++ b/src/lib/definitions.js @@ -1300,7 +1300,8 @@ function getFHPaddingEntries(index) '∞': [ define('Infinity[TO_LOCALE_STRING]()', LOCALE_INFINITY), - define('Infinity[TO_LOCALE_STRING]("ja")[1]', LOCALE_NUMERALS_IE11_WIN7), + define('Infinity[TO_LOCALE_STRING]("ja")[1]', LOCALE_NUMERALS_IE11_WIN7_8), + define('Infinity[TO_LOCALE_STRING]("ru")', LOCALE_NUMERALS_IE11_WIN8), define('Infinity[TO_LOCALE_STRING]("ja")[SLICE_OR_SUBSTR]("-1")', JAPANESE_INFINITY), define('Infinity[TO_LOCALE_STRING]("ja").at("-1")', JAPANESE_INFINITY, AT), defineCharDefault(), @@ -2146,43 +2147,43 @@ function getFHPaddingEntries(index) useLocaleNumeralDefinition('ي', '"ar"', NaN, 1); useLocaleNumeralDefinition('س', '"ar"', NaN, 2); useLocaleNumeralDefinition('ر', '"ar"', NaN, 4, LOCALE_NUMERALS_EXT); - useLocaleNumeralDefinition('ب', '"ar"', NaN, 4, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ب', '"ar"', NaN, 4, LOCALE_NUMERALS_IE11_WIN7_8); useLocaleNumeralDefinition('ق', '"ar"', NaN, 5, LOCALE_NUMERALS_EXT); - useLocaleNumeralDefinition('ر', '"ar"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ر', '"ar"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7_8); useLocaleNumeralDefinition('م', '"ar"', NaN, 6, LOCALE_NUMERALS_EXT); - useLocaleNumeralDefinition('ق', '"ar"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('م', '"ar"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ا', '"ar"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ن', '"ar"', Infinity, 4, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ه', '"ar"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ﺓ', '"ar"', Infinity, 8, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ق', '"ar"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('م', '"ar"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ا', '"ar"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ن', '"ar"', Infinity, 4, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ه', '"ar"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ﺓ', '"ar"', Infinity, 8, LOCALE_NUMERALS_IE11_WIN7_8); useLocaleNumeralDigitDefinitions('"bn"', 0x09e6, LOCALE_NUMERALS_EXT); - useLocaleNumeralDefinition('č', '"cs"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('μ', '"el"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('η', '"el"', NaN, 1, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('α', '"el"', NaN, 3, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ρ', '"el"', NaN, 4, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ι', '"el"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('θ', '"el"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ό', '"el"', NaN, 8, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ς', '"el"', NaN, 9, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('Ά', '"el"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('π', '"el"', Infinity, 1, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ε', '"el"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ο', '"el"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('č', '"cs"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('μ', '"el"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('η', '"el"', NaN, 1, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('α', '"el"', NaN, 3, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ρ', '"el"', NaN, 4, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ι', '"el"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('θ', '"el"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ό', '"el"', NaN, 8, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ς', '"el"', NaN, 9, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('Ά', '"el"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('π', '"el"', Infinity, 1, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ε', '"el"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ο', '"el"', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7_8); useLocaleNumeralDigitDefinitions('"fa"', 0x06f0); useLocaleNumeralDefinition('٬', '"fa"', 1000, 1); useLocaleNumeralDefinition('ن', '"fa"', NaN, 0, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('ا', '"fa"', NaN, 1, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('ع', '"fa"', NaN, 2, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('د', '"fa"', NaN, 3, LOCALE_NUMERALS_EXT); - useLocaleNumeralDefinition('ל', '"he"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('非', '"ja"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('数', '"ja"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('値', '"ja"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ל', '"he"', NaN, 0, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('非', '"ja"', NaN, 5, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('数', '"ja"', NaN, 6, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('値', '"ja"', NaN, 7, LOCALE_NUMERALS_IE11_WIN7_8); useLocaleNumeralDefinition('ė', '"lt"', Infinity, 7, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ī', '"lv"', Infinity, 6, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('ś', '"pl"', Infinity, 13, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('ī', '"lv"', Infinity, 6, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('ś', '"pl"', Infinity, 13, LOCALE_NUMERALS_IE11_WIN7_8); useLocaleNumeralDefinition('н', '"ru"', NaN, 0, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('е', '"ru"', NaN, 1, LOCALE_NUMERALS_EXT); useLocaleNumeralDefinition('ч', '"ru"', NaN, 3, LOCALE_NUMERALS_EXT); @@ -2199,7 +2200,7 @@ function getFHPaddingEntries(index) useLocaleNumeralDefinition('о', '"ru"', Infinity, 9, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('т', '"ru"', Infinity, 11, LOCALE_NUMERALS_IE11_WIN7); useLocaleNumeralDefinition('ь', '"ru"', Infinity, 12, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('正', '"zh"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7); - useLocaleNumeralDefinition('字', '"zh-cn"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7); + useLocaleNumeralDefinition('正', '"zh"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7_8); + useLocaleNumeralDefinition('字', '"zh-cn"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7_8); } )(); From 608b237702e22d039e36eecb3d00586d81816fdb Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:03:42 +0800 Subject: [PATCH 14/26] Update feature-emulation.helpers.js --- test/helpers/feature-emulation.helpers.js | 78 ++++++++++++++++++++--- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/test/helpers/feature-emulation.helpers.js b/test/helpers/feature-emulation.helpers.js index 59d86d16..11b605b5 100644 --- a/test/helpers/feature-emulation.helpers.js +++ b/test/helpers/feature-emulation.helpers.js @@ -1034,6 +1034,40 @@ }, LOCALE_NUMERALS_IE11_WIN7: function () + { + this.arabicNaNString = 'ليس\xa0برقم'; + registerNumberToLocaleStringAdapter + ( + this, + function (locale) + { + var returnValue; + var number; + switch (locale) + { + case 'lv': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return 'bezgalība'; + case -Infinity: + return '-bezgalība'; + } + case 'ru': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return 'бесконечность'; + case -Infinity: + return '-бесконечность'; + } + } + return returnValue; + } + ); + }, + LOCALE_NUMERALS_IE11_WIN7_8: + function () { this.arabicNaNString = 'ليس\xa0برقم'; registerNumberToLocaleStringAdapter @@ -1101,14 +1135,6 @@ } } break; - case 'lt': - switch (+this) // In Internet Explorer 9, +this is different from this. - { - case Infinity: - return 'begalybė'; - case -Infinity: - return '-begalybė'; - } case 'lv': switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1141,12 +1167,46 @@ case -Infinity: return '负无穷大'; } - } case 'zh-cn': number = Number(this); if (isNaN(number)) returnValue = '非数字'; break; + } + return returnValue; + } + ); + }, + LOCALE_NUMERALS_IE11_WIN8: + function () + { + this.arabicNaNString = 'ليس\xa0برقم'; + registerNumberToLocaleStringAdapter + ( + this, + function (locale) + { + var returnValue; + var number; + switch (locale) + { + case 'lv': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return '∞'; + case -Infinity: + return '-∞'; + } + case 'ru': + switch (+this) // In Internet Explorer 9, +this is different from this. + { + case Infinity: + return '∞'; + case -Infinity: + return '-∞'; + } + } return returnValue; } ); From 7d1668fc69494594ff7776db92425c5d9f9d41eb Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:04:04 +0800 Subject: [PATCH 15/26] Update features.js --- src/lib/features.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index 618ba15d..8860ef9e 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -567,7 +567,6 @@ var featureInfos = checkLocaleNumeral('ru', Infinity, /^бесконечность/) && return available; }, - includes: ['LOCALE_NUMERALS_IE11_WIN7_8'], }, LOCALE_NUMERALS_IE11_WIN7_8: { @@ -619,7 +618,6 @@ var featureInfos = (Infinity.toLocaleString('ru') === '∞'); return available; }, - includes: ['LOCALE_NUMERALS_IE11_WIN7_8'], }, LOCATION: { From 87324c4313e74d9a4693385edf2ea713e5050052 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:08:17 +0800 Subject: [PATCH 16/26] Update definitions.js --- src/lib/definitions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/definitions.js b/src/lib/definitions.js index 69d57abc..2854d2c2 100644 --- a/src/lib/definitions.js +++ b/src/lib/definitions.js @@ -384,6 +384,8 @@ function getFHPaddingEntries(index) var LOCALE_NUMERALS = Feature.LOCALE_NUMERALS; var LOCALE_NUMERALS_EXT = Feature.LOCALE_NUMERALS_EXT; var LOCALE_NUMERALS_IE11_WIN7 = Feature.LOCALE_NUMERALS_IE11_WIN7; + var LOCALE_NUMERALS_IE11_WIN7_8 = Feature.LOCALE_NUMERALS_IE11_WIN7_8; + var LOCALE_NUMERALS_IE11_WIN8 = Feature.LOCALE_NUMERALS_IE11_WIN8; var LOCATION = Feature.LOCATION; var MOZILLA = Feature.MOZILLA; var NAME = Feature.NAME; From 197f2234a7b5f712c500f7c620c806d36df03086 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:25:45 +0800 Subject: [PATCH 17/26] Update feature-emulation.helpers.js --- test/helpers/feature-emulation.helpers.js | 28 ++++++++++++++--------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/test/helpers/feature-emulation.helpers.js b/test/helpers/feature-emulation.helpers.js index 11b605b5..f4a9cf98 100644 --- a/test/helpers/feature-emulation.helpers.js +++ b/test/helpers/feature-emulation.helpers.js @@ -1042,7 +1042,6 @@ function (locale) { var returnValue; - var number; switch (locale) { case 'lv': @@ -1053,6 +1052,7 @@ case -Infinity: return '-bezgalība'; } + break; case 'ru': switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1061,6 +1061,7 @@ case -Infinity: return '-бесконечность'; } + break; } return returnValue; } @@ -1084,7 +1085,7 @@ number = Number(this); if (isNaN(number)) returnValue = 'ليس\xa0برقم'; - else + else { switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1108,10 +1109,10 @@ { switch (+this) // In Internet Explorer 9, +this is different from this. { - case Infinity: - return 'Άπειρο'; - case -Infinity: - return '-Άπειρο'; + case Infinity: + return 'Άπειρο'; + case -Infinity: + return '-Άπειρο'; } } break; @@ -1128,10 +1129,10 @@ { switch (+this) // In Internet Explorer 9, +this is different from this. { - case Infinity: - return '+∞'; - case -Infinity: - return '-∞'; + case Infinity: + return '+∞'; + case -Infinity: + return '-∞'; } } break; @@ -1143,6 +1144,7 @@ case -Infinity: return '-bezgalība'; } + break; case 'pl': switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1151,6 +1153,7 @@ case -Infinity: return '-nieskończoność'; } + break; case 'ru': switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1159,6 +1162,7 @@ case -Infinity: return '-бесконечность'; } + break; case 'zh': switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1167,6 +1171,7 @@ case -Infinity: return '负无穷大'; } + break; case 'zh-cn': number = Number(this); if (isNaN(number)) @@ -1187,7 +1192,6 @@ function (locale) { var returnValue; - var number; switch (locale) { case 'lv': @@ -1198,6 +1202,7 @@ case -Infinity: return '-∞'; } + break; case 'ru': switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1206,6 +1211,7 @@ case -Infinity: return '-∞'; } + break; } return returnValue; } From e2166d5e684b8193aedb5a4372112e2793310467 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:28:41 +0800 Subject: [PATCH 18/26] Update feature-emulation.helpers.js --- test/helpers/feature-emulation.helpers.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/helpers/feature-emulation.helpers.js b/test/helpers/feature-emulation.helpers.js index f4a9cf98..353ad8ad 100644 --- a/test/helpers/feature-emulation.helpers.js +++ b/test/helpers/feature-emulation.helpers.js @@ -1089,10 +1089,10 @@ { switch (+this) // In Internet Explorer 9, +this is different from this. { - case Infinity: - return '+لا\xa0نهاية'; - case -Infinity: - return '-لا\xa0نهاية'; + case Infinity: + return '+لا\xa0نهاية'; + case -Infinity: + return '-لا\xa0نهاية'; } } break; @@ -1105,7 +1105,7 @@ number = Number(this); if (isNaN(number)) returnValue = 'μη\xa0αριθμός'; - else + else { switch (+this) // In Internet Explorer 9, +this is different from this. { @@ -1125,7 +1125,7 @@ number = Number(this); if (isNaN(number)) returnValue = 'NaN\xa0(非数値)'; - else + else { switch (+this) // In Internet Explorer 9, +this is different from this. { From 7afe4daa68109ef847e19d79764ed68036afc449 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:33:27 +0800 Subject: [PATCH 19/26] Update features.js --- src/lib/features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/features.js b/src/lib/features.js index 8860ef9e..d70f43de 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -564,7 +564,7 @@ var featureInfos = { var available = checkLocaleNumeral('lt', Infinity, /^begalybė/) && - checkLocaleNumeral('ru', Infinity, /^бесконечность/) && + checkLocaleNumeral('ru', Infinity, /^бесконечность/); return available; }, }, From 8e4b7397a5fa8cfc3059603eee200667a7c39cb4 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:42:20 +0800 Subject: [PATCH 20/26] Update features.js --- src/lib/features.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index d70f43de..1e5a3067 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -614,8 +614,8 @@ var featureInfos = check: function () { - var available = (Infinity.toLocaleString('lt') === '∞') && - (Infinity.toLocaleString('ru') === '∞'); + var available = Infinity.toLocaleString('lt') === '∞' && + Infinity.toLocaleString('ru') === '∞'; return available; }, }, From 511cee2901c5d49b093700a5457391afc51fc9f5 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:45:45 +0800 Subject: [PATCH 21/26] Update features.js --- src/lib/features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/features.js b/src/lib/features.js index 1e5a3067..f5d02052 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -552,7 +552,7 @@ var featureInfos = }, includes: ['LOCALE_NUMERALS'], }, - LOCALE_NUMERALS_IE11_WIN7: + LOCALE_NUMERALS_IE11_WIN7: { description: 'Localized number formatting exclusive to Interner Explorer 11 in Windows 7.\n' + From 0157064fca182a3ef41bace76c685adc7520a5f5 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 12:38:18 +0800 Subject: [PATCH 22/26] Update features.js --- src/lib/features.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/features.js b/src/lib/features.js index f5d02052..0dc9703d 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -567,6 +567,7 @@ var featureInfos = checkLocaleNumeral('ru', Infinity, /^бесконечность/); return available; }, + includes: ['LOCALE_NUMERALS_IE11_WIN7_8'], }, LOCALE_NUMERALS_IE11_WIN7_8: { @@ -618,6 +619,7 @@ var featureInfos = Infinity.toLocaleString('ru') === '∞'; return available; }, + includes: ['LOCALE_NUMERALS_IE11_WIN7_8'], }, LOCATION: { From f2beaf56e39248d02310cf7bbb2520f546a64fb7 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 12:57:26 +0800 Subject: [PATCH 23/26] Update feature-emulation.helpers.js --- test/helpers/feature-emulation.helpers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/helpers/feature-emulation.helpers.js b/test/helpers/feature-emulation.helpers.js index 353ad8ad..295da915 100644 --- a/test/helpers/feature-emulation.helpers.js +++ b/test/helpers/feature-emulation.helpers.js @@ -1044,13 +1044,13 @@ var returnValue; switch (locale) { - case 'lv': + case 'lt': switch (+this) // In Internet Explorer 9, +this is different from this. { case Infinity: - return 'bezgalība'; + return 'begalybė'; case -Infinity: - return '-bezgalība'; + return '-begalybė'; } break; case 'ru': @@ -1194,7 +1194,7 @@ var returnValue; switch (locale) { - case 'lv': + case 'lt': switch (+this) // In Internet Explorer 9, +this is different from this. { case Infinity: From 8f19980afc8643c243e9b48a202a594e04c73e17 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:06:24 +0800 Subject: [PATCH 24/26] Update feature-emulation.helpers.js --- test/helpers/feature-emulation.helpers.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/helpers/feature-emulation.helpers.js b/test/helpers/feature-emulation.helpers.js index 295da915..401270e4 100644 --- a/test/helpers/feature-emulation.helpers.js +++ b/test/helpers/feature-emulation.helpers.js @@ -1044,13 +1044,13 @@ var returnValue; switch (locale) { - case 'lt': + case 'lv': switch (+this) // In Internet Explorer 9, +this is different from this. { case Infinity: - return 'begalybė'; + return 'bezgalība'; case -Infinity: - return '-begalybė'; + return '-bezgalība'; } break; case 'ru': @@ -1136,13 +1136,13 @@ } } break; - case 'lv': + case 'lt': switch (+this) // In Internet Explorer 9, +this is different from this. { case Infinity: - return 'bezgalība'; + return 'begalybė'; case -Infinity: - return '-bezgalība'; + return '-begalybė'; } break; case 'pl': @@ -1194,7 +1194,7 @@ var returnValue; switch (locale) { - case 'lt': + case 'lv': switch (+this) // In Internet Explorer 9, +this is different from this. { case Infinity: From 6a9f30df0b5f91716c4ce317b703664b7ca816c4 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:06:31 +0800 Subject: [PATCH 25/26] Update features.js --- src/lib/features.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index 0dc9703d..eded5eb3 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -556,14 +556,14 @@ var featureInfos = { description: 'Localized number formatting exclusive to Interner Explorer 11 in Windows 7.\n' + - 'This includes the letters in the Lithuanian string representation of Infinity ' + - '("begalybė") and the letters in the Russian string representation of Infinity ' + + 'This includes the letters in the Latvian string representation of Infinity ' + + '("bezgalība") and the letters in the Russian string representation of Infinity ' + '("бесконечность").', check: function () { var available = - checkLocaleNumeral('lt', Infinity, /^begalybė/) && + checkLocaleNumeral('lv', Infinity, /^bezgalība/) && checkLocaleNumeral('ru', Infinity, /^бесконечность/); return available; }, @@ -581,7 +581,7 @@ var featureInfos = 'of NaN ("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + '("לא\xa0מספר"), the characters in the Japanese string representation of Infinity ' + '("+∞"), the characters in the Japanese string representation of NaN ("NaN\xa0(非数値)"), ' + - 'the letters in the Latvian string representation of Infinity ("bezgalība"), the letters ' + + 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the letters ' + 'in the Polish string representation of Infinity ("+nieskończoność"), the characters in ' + 'the Chinese string representation of Infinity ("正无穷大" or "正無窮大"), the characters ' + 'in the Simplified Chinese string representation of NaN ("非数字").', @@ -598,7 +598,7 @@ var featureInfos = checkLocaleNumeral('he', NaN, /^לא.מספר/) && checkLocaleNumeral('ja', Infinity, /^\+∞/) && checkLocaleNumeral('ja', NaN, /^NaN \(非数値\)/) && - checkLocaleNumeral('lv', Infinity, /^bezgalība/) && + checkLocaleNumeral('lt', Infinity, /^begalybė/) && checkLocaleNumeral('pl', Infinity, /^\+nieskończoność/) && checkLocaleNumeral('zh', Infinity, /^正/) && checkLocaleNumeral('zh-cn', NaN, /^非数字/); @@ -610,12 +610,11 @@ var featureInfos = { description: 'Localized number formatting exclusive to Interner Explorer 11 in Windows 8.\n' + - 'In this case, Lithuanian and Russian string representation of Infinity are ' + - 'both "∞".', + 'In this case, Latvian and Russian string representation of Infinity are both "∞".', check: function () { - var available = Infinity.toLocaleString('lt') === '∞' && + var available = Infinity.toLocaleString('lv') === '∞' && Infinity.toLocaleString('ru') === '∞'; return available; }, From ef7da3a3d655ca80aba83e8011141a26d4f327f6 Mon Sep 17 00:00:00 2001 From: Clayblockunova <41379534+Clayblockunova@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:11:15 +0800 Subject: [PATCH 26/26] Update features.js --- src/lib/features.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/features.js b/src/lib/features.js index eded5eb3..2522f1e2 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -581,10 +581,10 @@ var featureInfos = 'of NaN ("μη\xa0αριθμός"), the letters in the Hebrew string representation of NaN ' + '("לא\xa0מספר"), the characters in the Japanese string representation of Infinity ' + '("+∞"), the characters in the Japanese string representation of NaN ("NaN\xa0(非数値)"), ' + - 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the letters ' + - 'in the Polish string representation of Infinity ("+nieskończoność"), the characters in ' + - 'the Chinese string representation of Infinity ("正无穷大" or "正無窮大"), the characters ' + - 'in the Simplified Chinese string representation of NaN ("非数字").', + 'the letters in the Lithuanian string representation of Infinity ("begalybė"), the ' + + 'letters in the Polish string representation of Infinity ("+nieskończoność"), the ' + + 'characters in the Chinese string representation of Infinity ("正无穷大" or "正無窮大"), the ' + + 'characters in the Simplified Chinese string representation of NaN ("非数字").', check: function () {