summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/split
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/split')
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A10.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A11.js4
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js20
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js28
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js31
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js25
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js30
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js31
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js16
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js83
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js4
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A6.js2
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A7.js2
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A8.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A9.js4
103 files changed, 508 insertions, 590 deletions
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js
index 153a57b56..f4f331cb6 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js
@@ -13,21 +13,19 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.split.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.split.length;
-verifyNotWritable(String.prototype.split, "length", null, function() {
- return "shifted";
-});
+verifyNotWritable(String.prototype.split, "length", null, function(){return "shifted";});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.split.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: ' + String.prototype.split.length);
+ $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: '+String.prototype.split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js
index e5ca3139e..b3a94684f 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.split.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.split.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: ' + String.prototype.split.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: '+String.prototype.split.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.split.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.split.length !== 2) {
- $ERROR('#2: String.prototype.split.length === 2. Actual: ' + String.prototype.split.length);
+ $ERROR('#2: String.prototype.split.length === 2. Actual: '+String.prototype.split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js
index 69ca40343..9acfda6b3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js
@@ -21,7 +21,7 @@ var __split = __instance.split(true, false);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 0) {
- $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: ' + __split.length);
+ $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js
index c56b54de7..bc79057f8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js
@@ -15,16 +15,8 @@ description: >
function
---*/
-var __obj = {
- toString: function() {
- return "\u0042B";
- }
-}
-var __obj2 = {
- valueOf: function() {
- return true;
- }
-}
+var __obj = {toString:function(){return "\u0042B";}}
+var __obj2 = {valueOf:function(){return true;}}
var __str = "ABB\u0041BABAB";
var __split = __str.split(__obj, __obj2);
@@ -32,7 +24,7 @@ var __split = __str.split(__obj, __obj2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +32,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -48,7 +40,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -56,7 +48,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "A") {
- $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]);
+ $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js
index 73d4917a7..ddf8fe760 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js
@@ -15,27 +15,19 @@ description: >
function, that throw exception
---*/
-var __obj = {
- toString: function() {
- return "\u0041B";
- }
-}
-var __obj2 = {
- valueOf: function() {
- throw "intointeger";
- }
-}
+var __obj = {toString:function(){return "\u0041B";}}
+var __obj2 = {valueOf:function(){throw "intointeger";}}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-try {
- var x = __str.split(__obj, __obj2);
- $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
-} catch (e) {
- if (e !== "intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
- }
-}
+ try {
+ var x = __str.split(__obj, __obj2);
+ $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
+ } catch (e) {
+ if (e!=="intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
+ }
+ }
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js
index 5fe372049..ba6a0efed 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js
@@ -15,30 +15,19 @@ description: >
function and toString function, that throw exception
---*/
-var __obj = {
- toString: function() {
- return "\u0041B";
- }
-}
-var __obj2 = {
- valueOf: function() {
- return {};
- },
- toString: function() {
- throw "intointeger";
- }
-}
+var __obj = {toString:function(){return "\u0041B";}}
+var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}}
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-try {
- var x = __str.split(__obj, __obj2);
- $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
-} catch (e) {
- if (e !== "intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
- }
-}
+ try {
+ var x = __str.split(__obj, __obj2);
+ $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
+ } catch (e) {
+ if (e!=="intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
+ }
+ }
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js
index eded7e4c0..d97ac63db 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js
@@ -15,26 +15,15 @@ description: >
and toString functions
---*/
-var __obj = {
- toString: function() {
- return "\u0042\u0042";
- }
-}
-var __obj2 = {
- valueOf: function() {
- return {};
- },
- toString: function() {
- return "2";
- }
-}
+var __obj = {toString:function(){return "\u0042\u0042";}}
+var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}
var __split = "ABB\u0041BABAB\u0042cc^^\u0042Bvv%%B\u0042xxx".split(__obj, __obj2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +31,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +39,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 2) {
- $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +47,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "A") {
- $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]);
+ $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -66,7 +55,7 @@ if (__split[0] !== "A") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[1] !== "ABABA") {
- $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: ' + __split[1]);
+ $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js
index df6ee1d69..412513ed5 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js
@@ -15,28 +15,20 @@ description: >
have overrided valueOf function, that throw exception
---*/
-var __obj = {
- toString: function() {
- throw "intostr";
- }
-};
-var __obj2 = {
- valueOf: function() {
- throw "intoint";
- }
-};
+var __obj = {toString:function(){throw "intostr";}};
+var __obj2 = {valueOf:function(){throw "intoint";}};
var __instance = new Number(10001.10001);
-Number.prototype.split = String.prototype.split;
+Number.prototype.split=String.prototype.split;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-try {
- var x = __instance.split(__obj, __obj2);
- $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception');
-} catch (e) {
- if (e !== "intoint") {
- $ERROR('#1.1: Exception === "intoint". Actual: ' + e);
- }
-}
+ try {
+ var x = __instance.split(__obj, __obj2);
+ $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception');
+ } catch (e) {
+ if (e!=="intoint") {
+ $ERROR('#1.1: Exception === "intoint". Actual: '+e);
+ }
+ }
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js
index 52c2fc9ca..46cf12809 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js
@@ -16,20 +16,9 @@ description: >
throw exception
---*/
-var __obj = {
- toString: function() {
- return {};
- },
- valueOf: function() {
- throw "intostr";
- }
-};
+var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}};
-var __obj2 = {
- valueOf: function() {
- throw "intointeger";
- }
-};
+var __obj2 = {valueOf:function(){throw "intointeger";}};
__FACTORY.prototype.split = String.prototype.split;
@@ -41,19 +30,15 @@ try {
var x = __instance.split(__obj, __obj2);
$ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception');
} catch (e) {
- if (e !== "intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ if (e!=="intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
-function __FACTORY(value) {
- this.value = value;
- this.toString = function() {
- return new Number;
- };
- this.valueOf = function() {
- return this.value + ""
- };
+function __FACTORY( value ) {
+ this.value = value;
+ this.toString = function() { return new Number; };
+ this.valueOf=function(){return this.value+""};
}
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js
index 4fb875732..ff3d9ef00 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js
@@ -14,19 +14,15 @@ description: >
toString function, that return regexp
---*/
-var __obj = {
- toString: function() {
- return /\u0037\u0037/g;
- }
-};
+var __obj = {toString:function(){return /\u0037\u0037/g;}};
-Number.prototype.split = String.prototype.split;
+Number.prototype.split=String.prototype.split;
try {
var __split = 6776767677.006771122677555.split(__obj);
$ERROR('#1: "__split = 6776767677.006771122677555.split(__obj)" 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/split/S15.5.4.14_A1_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js
index 95124d9cd..9d7b34da2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js
@@ -14,14 +14,14 @@ description: Argument is regexp, and instance is Number
var __re = /\u0037\u0037/g;
-Number.prototype.split = String.prototype.split;
+Number.prototype.split=String.prototype.split;
var __split = 6776767677.006771122677555.split(__re);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 4) {
- $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: ' + __split.length);
+ $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split.length !== 4) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "6") {
- $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: ' + __split[0]);
+ $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@ if (__split[0] !== "6") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[1] !== "67676") {
- $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: ' + __split[1]);
+ $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -61,7 +61,7 @@ if (__split[1] !== "67676") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[2] !== ".006") {
- $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: ' + __split[2]);
+ $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -69,7 +69,7 @@ if (__split[2] !== ".006") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (__split[3] !== "1") {
- $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: ' + __split[3]);
+ $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: '+__split[3] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js
index 4c8fdbfb6..48bccb512 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js
@@ -12,16 +12,16 @@ es5id: 15.5.4.14_A1_T18
description: Checking by using eval
---*/
-var __re = new RegExp("00");
+var __re = new RegExp("00");
-Number.prototype.split = String.prototype.split;
+Number.prototype.split=String.prototype.split;
var __split = 6776767677.006771122677555.split(__re, eval("\"1\""));
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "6776767677.") {
- $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: ' + __split[0]);
+ $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js
index 775ac3f56..e099b49fa 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js
@@ -18,14 +18,12 @@ var __instance = new Boolean;
__instance.split = String.prototype.split;
-var __split = __instance.split("A" !== "\u0041", function() {
- return 0;
-}(), null);
+var __split = __instance.split("A"!=="\u0041", function(){return 0;}(),null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +31,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -41,7 +39,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 0) {
- $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: ' + __split.length);
+ $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js
index cb21c14a1..a7725324f 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js
@@ -14,53 +14,48 @@ description: Checking by using eval
var split = String.prototype.split.bind(this);
-var __obj__lim = {
- valueOf: function() {
- return 5;
- }
-};
+var __obj__lim = {valueOf:function(){return 5;}};
try {
- toString = Object.prototype.toString;
-} catch (e) {;
-}
+ toString = Object.prototype.toString;
+} catch(e) { ; }
//Checks are only valid if we can overwrite the global object's toString method
//(which ES5 doesn't even require to exist)
-if (toString === Object.prototype.toString) {
- var __class__ = toString();
-
- var __split = split(eval("\"[\""), __obj__lim);
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#1
- if (typeof __split !== "object") {
- $ERROR('#1: typeof __split === "object". Actual: ' + typeof __split);
- }
- //
- //////////////////////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#2
- if (__split.constructor !== Array) {
- $ERROR('#2: __split.constructor === Array. Actual: ' + __split.constructor);
- }
- //
- //////////////////////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#3
- if (__split.length !== 2) {
- $ERROR('#3: __split.length === 2. Actual: ' + __split.length);
- }
- //
- //////////////////////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#3
- if (__split[1].substring(0, 6) !== "object") {
- $ERROR('#4: __split[1].substring(0,6) === "object". Actual: ' + __split[1].substring(0, 6));
- }
- //
- //////////////////////////////////////////////////////////////////////////////
+if (toString===Object.prototype.toString) {
+ var __class__ = toString();
+
+ var __split = split(eval("\"[\""),__obj__lim);
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#1
+ if (typeof __split !== "object") {
+ $ERROR('#1: typeof __split === "object". Actual: '+typeof __split );
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#2
+ if (__split.constructor !== Array) {
+ $ERROR('#2: __split.constructor === Array. Actual: '+__split.constructor );
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#3
+ if (__split.length !== 2) {
+ $ERROR('#3: __split.length === 2. Actual: '+__split.length );
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#3
+ if (__split[1].substring(0,6) !== "object") {
+ $ERROR('#4: __split[1].substring(0,6) === "object". Actual: '+__split[1].substring(0,6) );
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
}
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js
index f2931438d..e0f5e3294 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js
@@ -18,7 +18,7 @@ var __split = "".split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __split = "".split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: __split = "".split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "") {
- $ERROR('#4: __split = "".split(); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#4: __split = "".split(); __split[0] === "". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js
index 982309d1a..5515c76a9 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js
@@ -15,14 +15,12 @@ description: >
---*/
//since ToString(null) evaluates to "null" split(null) evaluates to split("null",0)
-var __split = function() {
- return "gnulluna"
-}().split(null);
+var __split = function(){return "gnulluna"}().split(null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +28,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +36,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 2) {
- $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -46,7 +44,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "g") {
- $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: ' + __split[0]);
+ $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -54,7 +52,7 @@ if (__split[0] !== "g") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[1] !== "una") {
- $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: ' + __split[1]);
+ $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js
index 815d13d19..74a9b6d77 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js
@@ -18,7 +18,7 @@ var __split = new String("1undefined").split(x);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "1undefined") {
- $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: ' + __split[0]);
+ $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js
index 02cfc0165..bb030f4e2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js
@@ -17,7 +17,7 @@ var __split = String("undefinedd").split(undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -41,7 +41,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "undefinedd") {
- $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: ' + __split[0]);
+ $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js
index 05eb86148..3a7d671f3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js
@@ -14,16 +14,14 @@ description: >
overrided toString function
---*/
-var __obj = {
- toString: function() {}
-};
+var __obj = {toString:function(){}};
var __split = String(__obj).split(void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -39,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -47,7 +45,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "undefined") {
- $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: ' + __split[0]);
+ $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js
index eb545020d..e78ae20d0 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js
@@ -15,17 +15,17 @@ description: >
---*/
var __obj = {
- valueOf: function() {},
- toString: void 0
+ valueOf:function(){},
+ toString:void 0
};
//since ToString(undefined) evaluates to "undefined"
-var __split = new String(__obj).split(function() {}());
+var __split = new String(__obj).split(function(){}());
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: ' + typeof __split);
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: '+typeof __split );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -41,7 +41,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "undefined") {
- $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: ' + __split[0]);
+ $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js
index fdf968d87..0674e6091 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js
@@ -18,7 +18,7 @@ var __split = __string.split(",");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 5) {
- $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 5) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one") {
- $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two") {
- $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "two") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "three") {
- $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (__split[2] !== "three") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[3] !== "four") {
- $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: ' + __split[3]);
+ $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: '+__split[3] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -66,7 +66,7 @@ if (__split[3] !== "four") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (__split[4] !== "five") {
- $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: ' + __split[4]);
+ $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: '+__split[4] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js
index eff95ed19..64ad57b26 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js
@@ -19,7 +19,7 @@ var __split = __string.split(123);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,17 +27,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var i = 0; i < __expected.length; i++) {
- if (__expected[i] !== __split[i]) {
- $ERROR('#3.' + i + ': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected[' + i + ']===__split[' + i + ']. Actual: ' + __expected[i]);
- }
+for ( var i = 0; i < __expected.length; i++ ) {
+ if (__expected[i]!==__split[i]) {
+ $ERROR('#3.'+i+': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected['+i+']===__split['+i+']. Actual: '+__expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js
index b29dc9e0e..08951717a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js
@@ -18,7 +18,7 @@ var __split = __string.split(":");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1,two-2,four-4") {
- $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js
index 7696dfa9e..e3cde172c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js
@@ -18,7 +18,7 @@ var __split = __string.split("r-42");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1 two-2 four-4") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js
index 067bf5aeb..1dfd75e25 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js
@@ -18,7 +18,7 @@ var __split = __string.split("-4");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1 two-2 four") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one-1 two-2 four") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js
index ec0899acb..0ee0bd42d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js
@@ -18,7 +18,7 @@ var __split = __string.split("on");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "e-1 two-2 four-4") {
- $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js
index 2a580f29e..dea226994 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js
@@ -18,7 +18,7 @@ var __split = __string.split("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 0) {
- $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 0) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== undefined) {
- $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js
index 4a3bceb58..a7664c43b 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js
@@ -18,7 +18,7 @@ var __split = __string.split(" ");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js
index e76f25688..f21647307 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js
@@ -18,7 +18,7 @@ var __split = __string.split("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== " ") {
- $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js
index 65971fdd3..8e8f76073 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js
@@ -18,7 +18,7 @@ var __split = __string.split(" ");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js
index b9a9b2a74..bfd2b88a6 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js
@@ -18,7 +18,7 @@ var __split = __string.split("x");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js
index bedfcf81b..ccf7ca484 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js
@@ -18,7 +18,7 @@ var __split = __string.split(" ");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 5) {
- $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 5) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one") {
- $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two") {
- $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "two") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "three") {
- $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (__split[2] !== "three") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[3] !== "four") {
- $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: ' + __split[3]);
+ $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: '+__split[3] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -66,7 +66,7 @@ if (__split[3] !== "four") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (__split[4] !== "five") {
- $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: ' + __split[4]);
+ $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: '+__split[4] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js
index b927eeb09..dc5250fa8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js
@@ -18,7 +18,7 @@ var __split = __string.split(new RegExp);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,17 +26,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __string.length) {
- $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var i = 0; i < __string.length; i++) {
- if (__string.charAt(i) !== __split[i]) {
- $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt(' + i + ')===__split[' + i + ']. Actual: ' + __string.charAt(i));
- }
+for ( var i = 0; i < __string.length; i++ ) {
+ if (__string.charAt(i)!==__split[i]) {
+ $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt('+i+')===__split['+i+']. Actual: '+__string.charAt(i));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js
index dfe48ffd3..ea7759b72 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js
@@ -18,7 +18,7 @@ var __split = __string.split("ll");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "o") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js
index 2000c8067..f57cd2035 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js
@@ -18,7 +18,7 @@ var __split = __string.split("l");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js
index 495b83a60..e50b1d847 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js
@@ -18,7 +18,7 @@ var __split = __string.split("x");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hello") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js
index 49c6a0f1c..7efcab337 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js
@@ -18,7 +18,7 @@ var __split = __string.split("h");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "ello") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js
index ae70cca74..e8f450156 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js
@@ -18,7 +18,7 @@ var __split = __string.split("o");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hell") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "hell") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js
index 3646139de..27f6d41d6 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js
@@ -18,7 +18,7 @@ var __split = __string.split("hello");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js
index c7fd8c546..865c38c87 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js
@@ -18,7 +18,7 @@ var __split = __string.split(undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hello") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js
index 6ef0a4657..634a2b4cb 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js
@@ -18,7 +18,7 @@ var __split = __string.split("hellothere");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hello") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js
index fa342d632..b93e14102 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js
@@ -17,12 +17,12 @@ Number.prototype.split = String.prototype.split;
var __split = __instance.split(1);
-var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
+var __expected = ["","00","","","","22","33","44","60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js
index 6dd024d4a..0b16fee4d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js
@@ -13,12 +13,12 @@ description: Call split(/ /,2), instance is String("one two three four five")
var __string = new String("one two three four five");
-var __split = __string.split(/ /, 2);
+var __split = __string.split(/ /,2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one") {
- $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two") {
- $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js
index 5323ad072..7f17c7f3d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, 1);
+var __split = __instance.split(1,1);
var __expected = [""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js
index 15adead0f..45fb07dc2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, 2);
+var __split = __instance.split(1,2);
-var __expected = ["", "00"];
+var __expected = ["","00"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js
index 208852941..926a61515 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, 0);
+var __split = __instance.split(1,0);
var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
index 3d1269637..3f6695e9b 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, 100);
+var __split = __instance.split(1,100);
-var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
+var __expected = ["","00","","","","22","33","44","60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js
index c40f3993a..4132da25a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, void 0);
+var __split = __instance.split(1,void 0);
-var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
+var __expected = ["","00","","","","22","33","44","60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3: __split[index] === __expected[index]. Actual: ' + __split[index]);
- }
+ $ERROR('#3: __split[index] === __expected[index]. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js
index c82748bf2..22a23453c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, Math.pow(2, 32) - 1);
+var __split = __instance.split(1, Math.pow(2,32)-1);
-var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
+var __expected = ["","00","","","","22","33","44","60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js
index 20e3e84f2..d79d2d72d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js
@@ -22,7 +22,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js
index 1fa443388..05850c859 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, -Math.pow(2, 32) + 1);
+var __split = __instance.split(1, -Math.pow(2,32)+1);
var __expected = [""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js
index fd0b4b97a..1ca64e502 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js
@@ -20,7 +20,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,6 +36,6 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js
index ee012e98d..c9e9569ca 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js
@@ -20,7 +20,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,6 +36,6 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js
index 69bed2044..95f73fc13 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js
@@ -18,7 +18,7 @@ var __split = __string.split("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __string.length) {
- $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== __string.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "o") {
- $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "o") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "n") {
- $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "n") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[11] !== "e") {
- $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: ' + __split[11]);
+ $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: '+__split[11] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (__split[11] !== "e") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[12] !== "e") {
- $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: ' + __split[12]);
+ $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: '+__split[12] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js
index 2f11e0f0f..8ae1dcfc9 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js
@@ -20,7 +20,7 @@ var __expected = ["he"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,6 +36,6 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js
index d8e21db1e..76940f644 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 2);
-var __expected = ["he", ""];
+var __expected = ["he",""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
index 5b9b69fc8..3998246a3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 3);
-var __expected = ["he", "", "o"];
+var __expected = ["he","","o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js
index 1ec04cfc4..13a5d18ec 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 4);
-var __expected = ["he", "", "o"];
+var __expected = ["he","","o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js
index 1c8618b6d..bced5a65c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js
@@ -18,7 +18,7 @@ var __split = __string.split(/,/);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1") {
- $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one-1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two-2") {
- $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "two-2") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "four-4") {
- $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js
index e9d469d4a..b7c5dc2ad 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js
@@ -18,7 +18,7 @@ var __split = __string.split('');
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,17 +26,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __string.length) {
- $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var i = 0; i < __string.length; i++) {
- if (__split[i] !== __string.charAt(i)) {
- $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split[' + i + ']===__string.charAt(' + i + '). Actual: ' + __split[i]);
- }
+for ( var i = 0; i < __string.length; i++ ) {
+ if (__split[i]!==__string.charAt(i)) {
+ $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split['+i+']===__string.charAt('+i+'). Actual: '+__split[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js
index e0e5f0ca3..31a269a9c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js
@@ -21,7 +21,7 @@ var __split = __string.split(void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,17 +29,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var i = 0; i < __expected.length; i++) {
- if (__expected[i] !== __split[i]) {
- $ERROR('#3.' + i + ': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]);
- }
+for ( var i = 0; i < __expected.length; i++ ) {
+ if (__expected[i]!==__split[i]) {
+ $ERROR('#3.'+i+': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js
index ec0170f44..6f571dd08 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js
@@ -19,7 +19,7 @@ var __split = __string.split(null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,17 +27,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var i = 0; i < __expected.length; i++) {
- if (__expected[i] !== __split[i]) {
- $ERROR('#3.' + i + ': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]);
- }
+for ( var i = 0; i < __expected.length; i++ ) {
+ if (__expected[i]!==__split[i]) {
+ $ERROR('#3.'+i+': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js
index 8d7da32de..47aed96ec 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js
@@ -19,7 +19,7 @@ var __split = __string.split(true);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,17 +27,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var i = 0; i < __expected.length; i++) {
- if (__expected[i] !== __split[i]) {
- $ERROR('#3.' + i + ': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]);
- }
+for ( var i = 0; i < __expected.length; i++ ) {
+ if (__expected[i]!==__split[i]) {
+ $ERROR('#3.'+i+': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js
index f9494680c..0b1cc3a24 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js
@@ -17,7 +17,7 @@ var __split = __string.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one,two,three,four,five") {
- $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js
index 0958d37c5..4193458cb 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js
@@ -17,7 +17,7 @@ var __split = __string.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js
index 07f2d68c3..57b559c75 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js
@@ -17,7 +17,7 @@ var __split = __string.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== " ") {
- $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js
index 58670f6d0..ae6a6f525 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "[object Object]") {
- $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js
index 137d8465a..4e4190bf0 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js
@@ -10,11 +10,7 @@ es5id: 15.5.4.14_A3_T3
description: Instance is function(){}
---*/
-var __instance = {
- toString: function() {
- return "function(){}";
- }
-};
+var __instance = { toString: function() { return "function(){}";} };
__instance.split = String.prototype.split;
@@ -23,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,15 +27,15 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__split[0].substring(0, 8) !== "function") {
- $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: ' + __split[0].substring(0, 8));
+if (__split[0].substring(0,8) !== "function") {
+ $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: '+__split[0].substring(0,8) );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js
index 36f0fb2b2..4fdbc54d4 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "NaN") {
- $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js
index ad0cdda56..5d59496dc 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "-1234567890") {
- $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js
index c68a29ee1..5e8882c5d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __instance.toString()) {
- $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js
index 661bf4e36..da708173f 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "[object Math]") {
- $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js
index e1a309ef2..197e89afd 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js
@@ -10,7 +10,7 @@ es5id: 15.5.4.14_A3_T8
description: Instance is Array(1,2,3,4,5)
---*/
-var __instance = new Array(1, 2, 3, 4, 5);
+var __instance = new Array(1,2,3,4,5);
__instance.split = String.prototype.split;
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "1,2,3,4,5") {
- $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js
index b3bf706cf..4694e6d8f 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "false") {
- $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: ' + __split[0]);
+ $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js
index 8306e88d7..3086e76b7 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js
@@ -19,7 +19,7 @@ var __split = __string.split(__re);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js
index 296ac5ee5..26a49a0aa 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js
@@ -16,12 +16,12 @@ var __re = new RegExp;
var __split = __string.split(__re);
-var __expected = ["h", "e", "l", "l", "o"];
+var __expected = ["h","e","l","l","o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js
index 32503116d..a23f5e726 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js
@@ -21,7 +21,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js
index 05cc593e5..820d433fe 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js
@@ -21,7 +21,7 @@ var __expected = ["h"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[0]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js
index 72683da88..e9d93c574 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js
@@ -21,7 +21,7 @@ var __expected = ["h", "e"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js
index a3e264a31..52ebdc475 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js
@@ -21,7 +21,7 @@ var __expected = ["h", "e", "l"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js
index 88d744ae3..ecfd109af 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js
@@ -16,12 +16,12 @@ var __re = new RegExp;
var __split = __string.split(__re, 4);
-var __expected = ["h", "e", "l", "l"];
+var __expected = ["h", "e", "l" ,"l"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js
index b97b9aa5d..5b669ab81 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js
@@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js
index 5fecb0dca..fcea734ec 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js
@@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js
index 68a70929c..8121de01b 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js
@@ -21,7 +21,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js
index 3df56dacf..f9de8ea34 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js
@@ -16,12 +16,12 @@ var __re = /\s/;
var __split = __string.split(__re);
-var __expected = ["a", "b", "c", "de", "f"];
+var __expected = ["a","b","c","de","f"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js
index b6d9396e8..5454f5281 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re, 0);
+var __split = __string.split(__re,0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 0) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js
index cddd4f260..5825800d0 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js
@@ -16,14 +16,14 @@ var __string = new String("a b c de f");
var __re = /\s/;
-var __split = __string.split(__re, 3);
+var __split = __string.split(__re,3);
-var __expected = ["a", "b", "c"];
+var __expected = ["a","b","c"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js
index 16485eb04..8dbfb55ad 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js
@@ -21,7 +21,7 @@ var __expected = ["a b c de f"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
+ $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js
index 8ab1e54bf..1aed36c4a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js
@@ -18,12 +18,12 @@ var __re = /\d+/;
var __split = __string.split(__re);
-var __expected = ["dfe", "iu ", " =+", "--"];
+var __expected = ["dfe","iu "," =+","--"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js
index 2118c1e0e..6cfc3d655 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js
@@ -18,12 +18,12 @@ var __re = new RegExp('\\d+');
var __split = __string.split(__re);
-var __expected = ["dfe", "iu ", " =+", "--"];
+var __expected = ["dfe","iu "," =+","--"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js
index e946d99b5..5ea67cedc 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js
@@ -16,12 +16,12 @@ var __re = /[a-z]/;
var __split = __string.split(__re);
-var __expected = ["", "", "", ""];
+var __expected = ["","","",""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js
index 59cc456a5..16f05e87a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js
@@ -16,12 +16,12 @@ var __re = new RegExp('[a-z]');
var __split = __string.split(__re);
-var __expected = ["", "", "", ""];
+var __expected = ["","","",""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js
index 047e8d44e..791426679 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re, 1);
+var __split = __string.split(__re,1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: '+__split[0] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js
index 4c713ecb8..b57bc9bdb 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re, 2);
+var __split = __string.split(__re,2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: '+__split[1] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js
index ed7869865..0f1354a76 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re, 3);
+var __split = __string.split(__re,3);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js
index 0a8a68942..cb69ee51e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re, 4);
+var __split = __string.split(__re,4);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js
index 85a4f3b34..dc4d0275e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js
@@ -21,7 +21,7 @@ var __split = __string.split(__re, void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js
index 4ecc5fac7..2f4d49ed8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js
@@ -19,7 +19,7 @@ var __split = __string.split(__re, "hi");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 0) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js
index bea17ccf4..2d4ac920a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js
@@ -21,7 +21,7 @@ var __split = __string.split(__re, undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: ' + __split.length);
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: ' + __split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: '+__split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: ' + __split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: '+__split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: ' + __split[2]);
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: '+__split[2] );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js
index 85d6a2e7c..8d714bf6d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.split.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.split.prototype !== undefined) {
- $ERROR('#1: String.prototype.split.prototype === undefined. Actual: ' + String.prototype.split.prototype);
+ $ERROR('#1: String.prototype.split.prototype === undefined. Actual: '+String.prototype.split.prototype );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js
index 13b7b1d0c..7aeac1323 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.split; "__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/split/S15.5.4.14_A8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js
index 4f0cd2184..640f04120 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.split.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.split.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count = 0;
+var count=0;
-for (var p in String.prototype.split) {
- if (p === "length") count++;
+for (var p in String.prototype.split){
+ if (p==="length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: ' + count);
+ $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: '+count );
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js
index 131d8017e..c63153264 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.split.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.split.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.split.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////