aboutsummaryrefslogtreecommitdiffstats
path: root/test/built-ins/String/prototype/replace
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/replace')
-rw-r--r--test/built-ins/String/prototype/replace/15.5.4.11-1.js16
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A10.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A11.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A12.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js16
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js28
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js31
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js25
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js10
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js10
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js12
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js12
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A6.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A7.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A8.js10
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A9.js4
42 files changed, 195 insertions, 125 deletions
diff --git a/test/built-ins/String/prototype/replace/15.5.4.11-1.js b/test/built-ins/String/prototype/replace/15.5.4.11-1.js
index 5cc4a8ce9..c59125079 100644
--- a/test/built-ins/String/prototype/replace/15.5.4.11-1.js
+++ b/test/built-ins/String/prototype/replace/15.5.4.11-1.js
@@ -10,13 +10,13 @@ flags: [noStrict]
---*/
var global = this;
- var retVal = 'x'.replace(/x/,
- function() {
- if (this===global) {
- return 'y';
- } else {
- return 'z';
- }
- });
+var retVal = 'x'.replace(/x/,
+ function() {
+ if (this === global) {
+ return 'y';
+ } else {
+ return 'z';
+ }
+ });
assert.sameValue(retVal, 'y', 'retVal');
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js
index 76846ee1f..a733aa05a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.replace.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.replace.length;
-verifyNotWritable(String.prototype.replace, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.replace, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.replace.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: '+String.prototype.replace.length );
+ $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: ' + String.prototype.replace.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js
index 5b9af5f11..78b3472ae 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.replace.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.replace.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: '+String.prototype.replace.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: ' + String.prototype.replace.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.replace.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.replace.length !== 2) {
- $ERROR('#2: String.prototype.replace.length === 2. Actual: '+String.prototype.replace.length );
+ $ERROR('#2: String.prototype.replace.length === 2. Actual: ' + String.prototype.replace.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js
index 66ba29f7f..0dea5dd0f 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js
@@ -17,7 +17,7 @@ var global = this;
}
if (this !== undefined) {
$ERROR('#2: replaceValue should be called with this===undefined. ' +
- 'Actual: ' + this);
+ 'Actual: ' + this);
}
return 'y';
});
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js
index 0ccd9a781..1e8384155 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js
@@ -14,7 +14,7 @@ __instance.replace = String.prototype.replace;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.replace(true, 1) !== "1") {
- $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: '+__instance.replace(true, 1) );
+ $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: ' + __instance.replace(true, 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js
index 552c478ff..c044c8515 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js
@@ -10,15 +10,23 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0041B";}};
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+};
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.replace(__obj, function(){return x;}) !== "undefinedBABABAB") {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: '+__str.replace(__obj, function(){return x;}) );
- }
+if (__str.replace(__obj, function() {
+ return x;
+ }) !== "undefinedBABABAB") {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: ' + __str.replace(__obj, function() {
+ return x;
+ }));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js
index e6da57621..9957654db 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js
@@ -10,19 +10,27 @@ description: >
function, that throw exception
---*/
-var __obj = {toString:function(){throw "insearchValue";}};
-var __obj2 = {toString:function(){throw "inreplaceValue";}};
+var __obj = {
+ toString: function() {
+ throw "insearchValue";
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inreplaceValue";
+ }
+};
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.replace(__obj,__obj2);
- $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="insearchValue") {
- $ERROR('#1.1: Exception === "insearchValue". Actual: '+e);
- }
- }
+try {
+ var x = __str.replace(__obj, __obj2);
+ $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "insearchValue") {
+ $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js
index d56fe57fd..b7fb48f1f 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js
@@ -11,19 +11,30 @@ description: >
have overrided toString function, that throw exception
---*/
-var __obj = {toString:function(){return {};}, valueOf:function(){throw "insearchValue";}};
-var __obj2 = {toString:function(){throw "inreplaceValue";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "insearchValue";
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inreplaceValue";
+ }
+};
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.replace(__obj, __obj2);
- $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="insearchValue") {
- $ERROR('#1.1: Exception === "insearchValue". Actual: '+e);
- }
- }
+try {
+ var x = __str.replace(__obj, __obj2);
+ $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "insearchValue") {
+ $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js
index 0a3b6feff..47f4cd103 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js
@@ -11,18 +11,29 @@ description: >
function, that throw exception
---*/
-var __obj = {toString:function(){return {};}, valueOf:function(){return 1;}};
-var __obj2 = {toString:function(){throw "inreplaceValue";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inreplaceValue";
+ }
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2);
- $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception');
+ var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2);
+ $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception');
} catch (e) {
- if (e!=="inreplaceValue") {
- $ERROR('#1.1: Exception === "inreplaceValue". Actual: '+e);
- }
+ if (e !== "inreplaceValue") {
+ $ERROR('#1.1: Exception === "inreplaceValue". Actual: ' + e);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js
index e37a5abec..0068bb2ff 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js
@@ -12,7 +12,7 @@ var __reg = new RegExp("77");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1) !== "ABBABABAB\u0031BBAA") {
- $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1)) );
+ $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js
index 6156897ad..f6a6011c9 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js
@@ -7,7 +7,11 @@ es5id: 15.5.4.11_A1_T15
description: Instance is Object, searchValue is regular expression
---*/
-var __obj = {toString:function(){return /77/}};
+var __obj = {
+ toString: function() {
+ return /77/
+ }
+};
var __instance = new Object(1100.00777001);
@@ -17,10 +21,10 @@ Object.prototype.replace = String.prototype.replace;
//CHECK#1
try {
var x = __instance.replace(__obj, 1) === "1100.0017001";
- $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception');
+ $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js
index e29fe2002..7954b1f9a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js
@@ -13,7 +13,13 @@ var __instance = new Number(1100.00777001);
Number.prototype.replace = String.prototype.replace;
-var __obj = {toString:function(){return function(a1,a2,a3){return a2+"z"};}}
+var __obj = {
+ toString: function() {
+ return function(a1, a2, a3) {
+ return a2 + "z"
+ };
+ }
+}
//__obj = function(a1,a2,a3){return a2+"z"};
@@ -24,7 +30,7 @@ try {
$ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.007z7001" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js
index 979101a3a..89a3a605e 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js
@@ -7,7 +7,7 @@ es5id: 15.5.4.11_A1_T17
description: Instance is String object, searchValue is regular expression
---*/
-var __re = new RegExp(x,"g");
+var __re = new RegExp(x, "g");
var __instance = String("asdf");
@@ -15,7 +15,7 @@ var __str = "1";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.replace(__re, __str) !== "1a1s1d1f1") {
- $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: '+__instance.replace(__re, __str) );
+ $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: ' + __instance.replace(__re, __str));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js
index b8c56f315..342007437 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js
@@ -15,8 +15,12 @@ __instance.replace = String.prototype.replace;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.replace(function(){return false;}(),x) !== "undefined") {
- $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: '+__instance.replace(function(){return false;}(),x) );
+if (__instance.replace(function() {
+ return false;
+ }(), x) !== "undefined") {
+ $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: ' + __instance.replace(function() {
+ return false;
+ }(), x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js
index e38a39444..f647a286e 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js
@@ -11,8 +11,16 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) !== "g1una") {
- $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: '+function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) );
+if (function() {
+ return "gnulluna"
+ }().replace(null, function(a1, a2, a3) {
+ return a2 + "";
+ }) !== "g1una") {
+ $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: ' + function() {
+ return "gnulluna"
+ }().replace(null, function(a1, a2, a3) {
+ return a2 + "";
+ }));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js
index cbd9c74fe..1b285d190 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js
@@ -11,8 +11,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (function(){return "gnulluna"}().replace(null, Function()) !== "gundefineduna") {
- $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: '+function(){return "gnulluna"}().replace(null, Function()) );
+if (function() {
+ return "gnulluna"
+ }().replace(null, Function()) !== "gundefineduna") {
+ $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: ' + function() {
+ return "gnulluna"
+ }().replace(null, Function()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js
index b593f4f93..4bb87896c 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js
@@ -12,8 +12,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String("undefined").replace(x,Function("return arguments[1]+42;")) !== "42") {
- $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: '+new String("undefined").replace(x,Function("return arguments[1]+42;")) );
+if (new String("undefined").replace(x, Function("return arguments[1]+42;")) !== "42") {
+ $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: ' + new String("undefined").replace(x, Function("return arguments[1]+42;")));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js
index 8c2ec1311..aebeaffc2 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js
@@ -11,8 +11,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(void 0).replace("e",undefined) !== "undundefinedfined") {
- $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: '+String(void 0).replace("e",undefined) );
+if (String(void 0).replace("e", undefined) !== "undundefinedfined") {
+ $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: ' + String(void 0).replace("e", undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js
index 81c9a9c4a..24bfc5d14 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js
@@ -9,12 +9,14 @@ description: >
expression and void 0 arguments of String object
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(__obj).replace(/e/g,void 0) !== "undundefinedfinundefinedd") {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: '+String(__obj).replace(/e/g,void 0) );
+if (String(__obj).replace(/e/g, void 0) !== "undundefinedfinundefinedd") {
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: ' + String(__obj).replace(/e/g, void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js
index 9c4ebe9e2..950aa347a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js
@@ -10,16 +10,18 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String(__obj).replace(function(){}(),__func) !== "undefined0undefined") {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: '+new String(__obj).replace(function(){}(),__func) );
+if (new String(__obj).replace(function() {}(), __func) !== "undefined0undefined") {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: ' + new String(__obj).replace(function() {}(), __func));
}
//
//////////////////////////////////////////////////////////////////////////////
-function __func(a1,a2,a3){return a1+a2+a3;};
+function __func(a1, a2, a3) {
+ return a1 + a2 + a3;
+};
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js
index faf12bdc5..14975453a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js
@@ -16,8 +16,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re,'sch')!=='She sells seaschells by the seaschore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: '+__str.replace(__re,'sch'));
+if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seaschore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: ' + __str.replace(__re, 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js
index aabe0d9ae..0a8d22f4c 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: '+__str.replace(__re, "$'" + 'sch'));
+if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js
index b5290edf2..3c4026889 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re,"$$" + 'sch')!=='She sells sea$schells by the sea$schore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: '+__str.replace(__re,"$$" + 'sch'));
+if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the sea$schore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js
index ca30baccb..231fe1bca 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re,"$&" + 'sch')!=='She sells seashschells by the seashschore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: '+__str.replace(__re,"$&" + 'sch'));
+if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashschore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js
index 3d6e58a3b..53b4143d0 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: '+__str.replace(__re, "$`" + 'sch'));
+if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js
index a3c907e2b..734dcb247 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seaore.schore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: '+__str.replace(__re, "$'" + 'sch'));
+if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seaore.schore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js
index c0811cbee..3ba195faf 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, 'sch')!=='She sells seaschells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, 'sch'));
+if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js
index 327071a44..3c475e5f1 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$$" + 'sch')!=='She sells sea$schells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: '+__str.replace(__re, "$$" + 'sch'));
+if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js
index 45c09ddfd..38accef87 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$&" + 'sch')!=='She sells seashschells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: '+__str.replace(__re, "$&" + 'sch'));
+if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js
index 946f10372..175a4df67 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, "$`" + 'sch'));
+if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js
index 07cc9cc72..2bd1e5d2d 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js
@@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$11" + 15)!=='uid=115') {
- $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + 15));
+if (__str.replace(__re, "$11" + 15) !== 'uid=115') {
+ $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + 15));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js
index 103dc9ec3..10b7df2c5 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js
@@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$11" + '15')!=='uid=115') {
- $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + '15'));
+if (__str.replace(__re, "$11" + '15') !== 'uid=115') {
+ $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + '15'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js
index 3b1a30458..83060fd58 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js
@@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$11" + 'A15')!=='uid=1A15' ) {
- $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: '+__str.replace(__re, "$11" + 'A15'));
+if (__str.replace(__re, "$11" + 'A15') !== 'uid=1A15') {
+ $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: ' + __str.replace(__re, "$11" + 'A15'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js
index e695fe572..99a1b6f3a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12abc def34') {
- $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12abc def34') {
+ $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js
index 141966c06..83489c51d 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12abc 34def') {
- $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12abc 34def') {
+ $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js
index fcd736f85..e60121203 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/i;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12aBc def34') {
- $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12aBc def34') {
+ $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js
index b272fa8d7..199688c6c 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/ig;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12aBc 34dEf') {
- $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12aBc 34dEf') {
+ $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js
index 22128bc6e..37a6bb1fb 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js
@@ -13,8 +13,8 @@ var __repl = "$1";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __repl)!=='aaaaa') {
- $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: '+__str.replace(__pattern, __repl));
+if (__str.replace(__pattern, __repl) !== 'aaaaa') {
+ $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: ' + __str.replace(__pattern, __repl));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js
index 5ba2416ab..f71770ae6 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.replace.prototype;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.replace.prototype !== undefined) {
- $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: '+String.prototype.replace.prototype );
+ $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: ' + String.prototype.replace.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js
index 848f6bd1e..e88a11ca1 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js
index 3ad4ba953..536529b43 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.replace.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.replace.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.replace){
- if (p==="length") count++;
+for (var p in String.prototype.replace) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js
index 55b188a5e..0d198db9e 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.replace.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.replace.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.replace.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////