diff options
Diffstat (limited to 'test/built-ins/String/prototype/substring/S15.5.4.15_A8.js')
-rw-r--r-- | test/built-ins/String/prototype/substring/S15.5.4.15_A8.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js index b48d4db02..36af36356 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.substring.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.substring){ - if (p==="length") count++; +for (var p in String.prototype.substring) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// |