diff options
Diffstat (limited to 'test/built-ins/String/prototype/split')
103 files changed, 590 insertions, 508 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 f4f331cb6..153a57b56 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,19 +13,21 @@ 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 b3a94684f..e5ca3139e 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 9acfda6b3..69ca40343 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 bc79057f8..c56b54de7 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,8 +15,16 @@ 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); @@ -24,7 +32,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +40,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +48,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,7 +56,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 ddf8fe760..73d4917a7 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,19 +15,27 @@ 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 ba6a0efed..5fe372049 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,19 +15,30 @@ 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 d97ac63db..eded7e4c0 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,15 +15,26 @@ 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); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +42,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +50,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -47,7 +58,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]); } // ////////////////////////////////////////////////////////////////////////////// @@ -55,7 +66,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 412513ed5..df6ee1d69 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,20 +15,28 @@ 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 46cf12809..52c2fc9ca 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,9 +16,20 @@ 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; @@ -30,15 +41,19 @@ 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 ff3d9ef00..4fb875732 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,15 +14,19 @@ 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 9d7b34da2..95124d9cd 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 48bccb512..4c8fdbfb6 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 e099b49fa..775ac3f56 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,12 +18,14 @@ 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); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +33,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +41,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 a7725324f..cb21c14a1 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,48 +14,53 @@ 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 e0f5e3294..f2931438d 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 5515c76a9..982309d1a 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,12 +15,14 @@ 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); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +30,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,7 +38,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -44,7 +46,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]); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +54,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 74a9b6d77..815d13d19 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 bb030f4e2..02cfc0165 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 3a7d671f3..05eb86148 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,14 +14,16 @@ 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); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +39,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +47,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 e78ae20d0..eb545020d 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 0674e6091..fdf968d87 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 64ad57b26..eff95ed19 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 08951717a..b29dc9e0e 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 e3cde172c..7696dfa9e 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 1dfd75e25..067bf5aeb 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 0ee0bd42d..ec0899acb 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 dea226994..2a580f29e 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 a7664c43b..4a3bceb58 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 f21647307..e76f25688 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 8e8f76073..65971fdd3 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 bfd2b88a6..b9a9b2a74 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 ccf7ca484..bedfcf81b 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 dc5250fa8..b927eeb09 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 ea7759b72..dfe48ffd3 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 f57cd2035..2000c8067 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 e50b1d847..495b83a60 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 7efcab337..49c6a0f1c 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 e8f450156..ae70cca74 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 27f6d41d6..3646139de 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 865c38c87..c7fd8c546 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 634a2b4cb..6ef0a4657 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 b93e14102..fa342d632 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 0b16fee4d..6dd024d4a 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 7f17c7f3d..5323ad072 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 45fb07dc2..15adead0f 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 926a61515..208852941 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 3f6695e9b..3d1269637 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 4132da25a..c40f3993a 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 22a23453c..c82748bf2 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 d79d2d72d..20e3e84f2 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 05850c859..1fa443388 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 1ca64e502..fd0b4b97a 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 c9e9569ca..ee012e98d 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 95f73fc13..69bed2044 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 8ae1dcfc9..2f11e0f0f 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 76940f644..d8e21db1e 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 3998246a3..5b9b69fc8 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 13a5d18ec..1ec04cfc4 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 bced5a65c..1c8618b6d 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 b7c5dc2ad..e9d469d4a 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 31a269a9c..e0e5f0ca3 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 6f571dd08..ec0170f44 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 47aed96ec..8d7da32de 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 0b1cc3a24..f9494680c 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 4193458cb..0958d37c5 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 57b559c75..07f2d68c3 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 ae6a6f525..58670f6d0 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 4e4190bf0..137d8465a 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,7 +10,11 @@ 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; @@ -19,7 +23,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); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,15 +31,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 4fdbc54d4..36f0fb2b2 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 5d59496dc..ad0cdda56 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 5e8882c5d..c68a29ee1 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 da708173f..661bf4e36 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 197e89afd..e1a309ef2 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 4694e6d8f..b3bf706cf 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 3086e76b7..8306e88d7 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 26a49a0aa..296ac5ee5 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 a23f5e726..32503116d 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 820d433fe..05cc593e5 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 e9d93c574..72683da88 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 52ebdc475..a3e264a31 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 ecfd109af..88d744ae3 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 5b669ab81..b97b9aa5d 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 fcea734ec..5fecb0dca 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 8121de01b..68a70929c 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 f9de8ea34..3df56dacf 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 5454f5281..b6d9396e8 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 5825800d0..cddd4f260 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 8dbfb55ad..16485eb04 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 1aed36c4a..8ab1e54bf 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 6cfc3d655..2118c1e0e 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 5ea67cedc..e946d99b5 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 16f05e87a..59cc456a5 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 791426679..047e8d44e 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 b57bc9bdb..4c713ecb8 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 0f1354a76..ed7869865 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 cb69ee51e..0a8a68942 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 dc4d0275e..85a4f3b34 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 2f4d49ed8..4ecc5fac7 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 2d4ac920a..bea17ccf4 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 8d714bf6d..85d6a2e7c 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 7aeac1323..13b7b1d0c 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 640f04120..4f0cd2184 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 c63153264..131d8017e 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')); } // ////////////////////////////////////////////////////////////////////////////// |