Skip to content

Commit

Permalink
Update feature-emulation.helpers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayblockunova authored Aug 19, 2024
1 parent 7dc440b commit 608b237
Showing 1 changed file with 69 additions and 9 deletions.
78 changes: 69 additions & 9 deletions test/helpers/feature-emulation.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
{
Expand Down Expand Up @@ -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;
}
);
Expand Down

0 comments on commit 608b237

Please sign in to comment.