diff options
Diffstat (limited to 'test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js')
-rw-r--r-- | test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js index 06517ec3a..e1e5cdd26 100644 --- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js +++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js @@ -13,11 +13,11 @@ var thisValues = ["a", "t", "u", "undefined", "UNDEFINED", "nicht definiert", "x var i; for (i = 0; i < thisValues.length; i++) { - var thisValue = thisValues[i]; - if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) { - $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined."); - } - if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) { - $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); - } + var thisValue = thisValues[i]; + if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) { + $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined."); + } + if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) { + $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); + } } |