aboutsummaryrefslogtreecommitdiffstats
path: root/test/built-ins/String/prototype/concat
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/concat')
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A10.js8
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A11.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js33
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A2.js18
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A3.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js10
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js18
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A6.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A7.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A8.js10
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A9.js4
19 files changed, 86 insertions, 53 deletions
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js
index 00258a5e5..599b763ab 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.concat.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.concat.length;
-verifyNotWritable(String.prototype.concat, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.concat, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.concat.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: '+String.prototype.concat.length );
+ $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: ' + String.prototype.concat.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js
index 69016d99a..1896234ed 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.concat.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.concat.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: '+String.prototype.concat.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: ' + String.prototype.concat.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.concat.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.concat.length !== 1) {
- $ERROR('#2: String.prototype.concat.length === 1. Actual: '+String.prototype.concat.length );
+ $ERROR('#2: String.prototype.concat.length === 1. Actual: ' + String.prototype.concat.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js
index 647cb30b5..bec80ca92 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js
@@ -13,8 +13,8 @@ __instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.concat(false,true) !== "42falsetrue") {
- $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: '+__instance.concat(false,true) );
+if (__instance.concat(false, true) !== "42falsetrue") {
+ $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: ' + __instance.concat(false, true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js
index 006d0b65d..fa908ae16 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js
@@ -7,19 +7,34 @@ es5id: 15.5.4.6_A1_T10
description: Call concat([,[...]]) function with object arguments
---*/
-var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}
-var __obj2 = {toString:function(){return true;}}
-var __obj3 = {toString:function(){return 42;}}
+var __obj = {
+ toString: function() {
+ return "\u0041";
+ },
+ valueOf: function() {
+ return "_\u0041_";
+ }
+}
+var __obj2 = {
+ toString: function() {
+ return true;
+ }
+}
+var __obj3 = {
+ toString: function() {
+ return 42;
+ }
+}
var __str = "lego";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.concat(__obj) !== "legoA") {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: '+__str.concat(__obj) );
- }
- if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") {
- $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: '+__str.concat(__obj, __obj2, __obj3, x) );
- }
+if (__str.concat(__obj) !== "legoA") {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: ' + __str.concat(__obj));
+}
+if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") {
+ $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: ' + __str.concat(__obj, __obj2, __obj3, x));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js
index 974b29823..1b2b1a799 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js
@@ -15,8 +15,8 @@ __instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.concat("\u0041",true,true+1) !== "falseAtrue2") {
- $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: '+__instance.concat("\u0041",true,true+1) );
+if (__instance.concat("\u0041", true, true + 1) !== "falseAtrue2") {
+ $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: ' + __instance.concat("\u0041", true, true + 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js
index f243a077d..13b2e3793 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js
@@ -11,7 +11,7 @@ description: Call concat([,[...]]) function without argument of string object
//CHECK#1
//since ToString() evaluates to "" concat() evaluates to concat("")
if ("lego".concat() !== "lego") {
- $ERROR('#1: "lego".concat() === "lego". Actual: '+("lego".concat()) );
+ $ERROR('#1: "lego".concat() === "lego". Actual: ' + ("lego".concat()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js
index 7bad9d2e0..a47b10436 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js
@@ -12,8 +12,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" concat(null) evaluates to concat("null")
-if (function(){return "lego"}().concat(null) !== "legonull") {
- $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: '+function(){return "lego"}().concat(null) );
+if (function() {
+ return "lego"
+ }().concat(null) !== "legonull") {
+ $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: ' + function() {
+ return "lego"
+ }().concat(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js
index e633a6afa..5d7824d60 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
if (new String("lego").concat(x) !== "legoundefined") {
- $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: '+new String("lego").concat(x) );
+ $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: ' + new String("lego").concat(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js
index 10e915663..09f682933 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
if (String("lego").concat(undefined) !== "legoundefined") {
- $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: '+String("lego").concat(undefined) );
+ $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: ' + String("lego").concat(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js
index 4ededc053..297fe08ae 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(void 0) evaluates to "undefined" concat(void 0) evaluates to concat("undefined")
if (String(42).concat(void 0) !== "42undefined") {
- $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: '+String(42).concat(void 0) );
+ $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: ' + String(42).concat(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js
index 08d70fd86..bfd2bac54 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js
@@ -12,8 +12,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
-if (new String(42).concat(function(){}()) !== "42undefined") {
- $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: '+new String(42).concat(function(){}()) );
+if (new String(42).concat(function() {}()) !== "42undefined") {
+ $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: ' + new String(42).concat(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js
index b16030c88..d9acfba8c 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js
@@ -14,15 +14,15 @@ __instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.concat(
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF
-) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") {
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF
+ ) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") {
$ERROR('#1: Call concat([,[...]]) function with 128 arguments does not lead to throwing any errors');
}
//
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js
index 3b2301578..0c477fd9e 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js
@@ -14,7 +14,7 @@ __instance.concat("two");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance != "one") {
- $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: '+__instance);
+ $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: ' + __instance);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js
index 8d2167924..4fb246b17 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js
@@ -9,14 +9,18 @@ es5id: 15.5.4.6_A4_T1
description: Override toString function
---*/
-var __instance = {toString:function(){return "one"}};
+var __instance = {
+ toString: function() {
+ return "one"
+ }
+};
__instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.concat("two",x) !== "onetwoundefined") {
- $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: '+__instance.concat("two",x) );
+if (__instance.concat("two", x) !== "onetwoundefined") {
+ $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: ' + __instance.concat("two", x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js
index 1e326035f..d743b9a45 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js
@@ -9,21 +9,29 @@ es5id: 15.5.4.6_A4_T2
description: Override toString function onto function, that throw exception
---*/
-var __instance = {toString:function(){throw "intostring";}};
-var __obj = {toString:function(){throw "infirstarg";}};
+var __instance = {
+ toString: function() {
+ throw "intostring";
+ }
+};
+var __obj = {
+ toString: function() {
+ throw "infirstarg";
+ }
+};
__instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- String.prototype.concat.call(__instance,__obj, notexist);
+ String.prototype.concat.call(__instance, __obj, notexist);
$ERROR('#1: "String.prototype.concat.call(__instance,__obj, notexist)" lead to throwing exception');
} catch (e) {
if (e !== "intostring") {
- $ERROR('#1: e === "intostring". Actual: '+e );
+ $ERROR('#1: e === "intostring". Actual: ' + e);
}
-}
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js
index 4da0d1454..f52f1a31e 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.concat.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.concat.prototype !== undefined) {
- $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: '+String.prototype.concat.prototype );
+ $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: ' + String.prototype.concat.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js
index bfb422a43..9ff301ab0 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js
index 51e74575b..c8613d934 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.concat.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,7 +21,7 @@ if (!(String.prototype.concat.hasOwnProperty('length'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (String.prototype.concat.propertyIsEnumerable('length')) {
- $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.concat.propertyIsEnumerable('length'));
+ $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.concat.propertyIsEnumerable('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,12 +30,12 @@ if (String.prototype.concat.propertyIsEnumerable('length')) {
// CHECK#2
var count = 0;
-for (var p in String.prototype.concat){
- if (p==="length") count++;
+for (var p in String.prototype.concat) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: '+count);
+ $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js
index dbb079290..6e92461a8 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.concat.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.concat.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.concat.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////