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 87324c4 commit 197f223
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions test/helpers/feature-emulation.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,6 @@
function (locale)
{
var returnValue;
var number;
switch (locale)
{
case 'lv':
Expand All @@ -1053,6 +1052,7 @@
case -Infinity:
return '-bezgalība';
}
break;
case 'ru':
switch (+this) // In Internet Explorer 9, +this is different from this.
{
Expand All @@ -1061,6 +1061,7 @@
case -Infinity:
return '-бесконечность';
}
break;
}
return returnValue;
}
Expand All @@ -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.
{
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -1143,6 +1144,7 @@
case -Infinity:
return '-bezgalība';
}
break;
case 'pl':
switch (+this) // In Internet Explorer 9, +this is different from this.
{
Expand All @@ -1151,6 +1153,7 @@
case -Infinity:
return '-nieskończoność';
}
break;
case 'ru':
switch (+this) // In Internet Explorer 9, +this is different from this.
{
Expand All @@ -1159,6 +1162,7 @@
case -Infinity:
return '-бесконечность';
}
break;
case 'zh':
switch (+this) // In Internet Explorer 9, +this is different from this.
{
Expand All @@ -1167,6 +1171,7 @@
case -Infinity:
return '负无穷大';
}
break;
case 'zh-cn':
number = Number(this);
if (isNaN(number))
Expand All @@ -1187,7 +1192,6 @@
function (locale)
{
var returnValue;
var number;
switch (locale)
{
case 'lv':
Expand All @@ -1198,6 +1202,7 @@
case -Infinity:
return '-∞';
}
break;
case 'ru':
switch (+this) // In Internet Explorer 9, +this is different from this.
{
Expand All @@ -1206,6 +1211,7 @@
case -Infinity:
return '-∞';
}
break;
}
return returnValue;
}
Expand Down

0 comments on commit 197f223

Please sign in to comment.