diff options
Diffstat (limited to 'test/built-ins/String/prototype/match')
37 files changed, 244 insertions, 211 deletions
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js index 009ca6ab1..4b71f1900 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js @@ -7,14 +7,18 @@ es5id: 15.5.4.10_A1_T10 description: Call match (regexp) function with object argument ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.match(__obj)[0] !=="AB") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: '+__str.match(__obj)[0] ); - } +if (__str.match(__obj)[0] !== "AB") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: ' + __str.match(__obj)[0]); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js index 01c8767eb..ea732163a 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js @@ -9,18 +9,22 @@ description: > match (regexp) function with this object as argument ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.match(__obj); - $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.match(__obj); + $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js index 9f6049a40..1acb9a21d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js @@ -9,18 +9,25 @@ description: > then call match (regexp) function with this object as argument ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.match(__obj); - $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.match(__obj); + $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js index 64e9be70b..8a9cb164f 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js @@ -9,12 +9,19 @@ description: > function with this object as argument ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0]) ); +if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0])); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +29,7 @@ if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length !== 1) { - $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length) ); + $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js index fb112c3fa..5ef04584d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js @@ -14,7 +14,7 @@ var __reg = new RegExp("77"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0] !== "77") { - $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".match(__reg)[0] === "77". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0]) ); + $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".match(__reg)[0] === "77". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0])); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js index dd8713565..e657e1bf3 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js @@ -10,14 +10,15 @@ description: Checking by using eval var match = String.prototype.match.bind(this); try { - this.toString = Object.prototype.toString; -} catch (e) { ; } + this.toString = Object.prototype.toString; +} catch (e) {; +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString - (match(eval("\"bj\""))[0] !== "bj")) { - $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: '+match(eval("\"bj\""))[0] ); +if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString + (match(eval("\"bj\""))[0] !== "bj")) { + $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: ' + match(eval("\"bj\""))[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js index d81fcf57f..7d67a718b 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js @@ -9,12 +9,12 @@ description: Call match (regexp) function without arguments of string var __matched = "".match(); -var __expected = RegExp().exec(""); +var __expected = RegExp().exec(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __matched = "".match(); __expected = RegExp().exec(""); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __matched = "".match(); __expected = RegExp().exec(""); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __matched = "".match(); __expected = RegExp().exec(""); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __matched = "".match(); __expected = RegExp().exec(""); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,16 +30,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __matched = "".match(); __expected = RegExp().exec(""); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __matched = "".match(); __expected = RegExp().exec(""); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __matched = "".match(); __expected = RegExp().exec(""); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __matched = "".match(); __expected = RegExp().exec(""); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js index f0a41f16f..a8ca7399d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js @@ -10,8 +10,12 @@ description: Call match (regexp) function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "gnulluna"}().match(null)[0] !== "null") { - $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: '+function(){return "gnulluna"}().match(null)[0] ); +if (function() { + return "gnulluna" + }().match(null)[0] !== "null") { + $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: ' + function() { + return "gnulluna" + }().match(null)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js index 9fd224f52..f88921461 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js @@ -11,12 +11,12 @@ description: > var __matched = new String("undefined").match(x); -var __expected = RegExp(x).exec("undefined"); +var __expected = RegExp(x).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +32,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js index b59c69173..a07e6f768 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js @@ -11,12 +11,12 @@ description: > var __matched = String("undefined").match(undefined); -var __expected = RegExp(undefined).exec("undefined"); +var __expected = RegExp(undefined).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +32,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js index 13aa23e55..36f3d0802 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js @@ -7,16 +7,18 @@ es5id: 15.5.4.10_A1_T8 description: Call match (regexp) function with void 0 argument of string object; ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; var __matched = String(__obj).match(void 0); -var __expected = RegExp(void 0).exec("undefined"); +var __expected = RegExp(void 0).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +26,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +34,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js index a9ce29da4..df8ab7b60 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js @@ -10,18 +10,18 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; -var __matched = new String(__obj).match(function(){}()); +var __matched = new String(__obj).match(function() {}()); -var __expected = RegExp(undefined).exec("undefined"); +var __expected = RegExp(undefined).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,16 +37,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js index 4f74b0689..d45e716aa 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js @@ -11,32 +11,32 @@ var __string = "1234567890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(3)[0]!== "3") { - $ERROR('#1: __string = "1234567890"; __string.match(3)[0]=== "3". Actual: '+__string.match(3)[0]); +if (__string.match(3)[0] !== "3") { + $ERROR('#1: __string = "1234567890"; __string.match(3)[0]=== "3". Actual: ' + __string.match(3)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(3).length !==1) { - $ERROR('#2: __string = "1234567890"; __string.match(3).length ===1. Actual: '+__string.match(3).length ); +if (__string.match(3).length !== 1) { + $ERROR('#2: __string = "1234567890"; __string.match(3).length ===1. Actual: ' + __string.match(3).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(3).index !==2) { - $ERROR('#3: __string = "1234567890"; __string.match(3).index ===2. Actual: '+__string.match(3).index ); +if (__string.match(3).index !== 2) { + $ERROR('#3: __string = "1234567890"; __string.match(3).index ===2. Actual: ' + __string.match(3).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__string.match(3).input !==__string) { - $ERROR('#4: __string = "1234567890"; __string.match(3).input ===__string. Actual: '+__string.match(3).input ); +if (__string.match(3).input !== __string) { + $ERROR('#4: __string = "1234567890"; __string.match(3).input ===__string. Actual: ' + __string.match(3).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js index 5a5c5f382..6a23ef54e 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js @@ -12,7 +12,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; @@ -20,25 +20,25 @@ __re.lastIndex = __string.lastIndexOf("0"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js index 8bf987ea9..c34a0c874 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js @@ -12,33 +12,33 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; -__re.lastIndex = __string.lastIndexOf("0")+1; +__re.lastIndex = __string.lastIndexOf("0") + 1; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js index c89079514..760e6a107 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js @@ -9,7 +9,7 @@ description: > ]?[\d]{4})?$/g ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __string = "Boston, MA 02134"; @@ -17,16 +17,16 @@ var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js index 4a6175599..3424023d2 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js @@ -9,7 +9,7 @@ description: > expression object have property lastIndex = 0 ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; __re.lastIndex = 0; @@ -18,16 +18,16 @@ var __string = "Boston, MA 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js index 92b559388..673f1fb0c 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js @@ -11,7 +11,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; @@ -19,16 +19,16 @@ __re.lastIndex = __string.length; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js index b2101492c..1f222e684 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js @@ -12,7 +12,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; @@ -20,16 +20,16 @@ __re.lastIndex = __string.lastIndexOf("0"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js index ac72b075f..6fb716b82 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js @@ -12,24 +12,24 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; -__re.lastIndex = __string.lastIndexOf("0")+1; +__re.lastIndex = __string.lastIndexOf("0") + 1; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js index 9cd4f7848..2721f7871 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js @@ -17,32 +17,32 @@ Number.prototype.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.match(__re)[0]!== "02") { - $ERROR('#1: __num.match(__re)[0]=== "02". Actual: '+__num.match(__re)[0]); +if (__num.match(__re)[0] !== "02") { + $ERROR('#1: __num.match(__re)[0]=== "02". Actual: ' + __num.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__num.match(__re).length !==1) { - $ERROR('#2: __num.match(__re).length ===1. Actual: '+__num.match(__re).length ); +if (__num.match(__re).length !== 1) { + $ERROR('#2: __num.match(__re).length ===1. Actual: ' + __num.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__num.match(__re).index !==1) { - $ERROR('#3: __num.match(__re).index ===1. Actual: '+__num.match(__re).index ); +if (__num.match(__re).index !== 1) { + $ERROR('#3: __num.match(__re).index ===1. Actual: ' + __num.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__num.match(__re).input !==String(__num)) { - $ERROR('#4: __num.match(__re).input ===String(__num). Actual: '+__num.match(__re).input ); +if (__num.match(__re).input !== String(__num)) { + $ERROR('#4: __num.match(__re).input ===String(__num). Actual: ' + __num.match(__re).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js index 9f8c8b30e..00ac312bc 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js @@ -19,32 +19,32 @@ Number.prototype.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.match(__re)[0]!== "02") { - $ERROR('#1: __num.match(__re)[0]=== "02". Actual: '+__num.match(__re)[0]); +if (__num.match(__re)[0] !== "02") { + $ERROR('#1: __num.match(__re)[0]=== "02". Actual: ' + __num.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__num.match(__re).length !==1) { - $ERROR('#2: __num.match(__re).length ===1. Actual: '+__num.match(__re).length ); +if (__num.match(__re).length !== 1) { + $ERROR('#2: __num.match(__re).length ===1. Actual: ' + __num.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__num.match(__re).index !==1) { - $ERROR('#3: __num.match(__re).index ===1. Actual: '+__num.match(__re).index ); +if (__num.match(__re).index !== 1) { + $ERROR('#3: __num.match(__re).index ===1. Actual: ' + __num.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__num.match(__re).input !==String(__num)) { - $ERROR('#4: __num.match(__re).input ===String(__num). Actual: '+__num.match(__re).input ); +if (__num.match(__re).input !== String(__num)) { + $ERROR('#4: __num.match(__re).input ===String(__num). Actual: ' + __num.match(__re).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js index 27e46bbb2..4d156a3c7 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T2 description: Regular expression is /34/g ---*/ -var __matches=["34","34","34"]; +var __matches = ["34", "34", "34"]; var __string = "343443444"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/34/g).length!== 3) { - $ERROR('#1: __string = "343443444"; __string.match(/34/g).length=== 3. Actual: '+__string.match(/34/g).length); +if (__string.match(/34/g).length !== 3) { + $ERROR('#1: __string = "343443444"; __string.match(/34/g).length=== 3. Actual: ' + __string.match(/34/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/34/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["34","34","34"]; __string = "343443444"; __string.match(/34/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/34/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/34/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["34","34","34"]; __string = "343443444"; __string.match(/34/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/34/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js index 26e6dd68e..3d42695ab 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T3 description: Regular expression is /\d{1}/g ---*/ -var __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; +var __matches = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; var __string = "123456abcde7890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/\d{1}/g).length!== 10) { - $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{1}/g).length=== 10. Actual: '+__string.match(/\d{1}/g).length); +if (__string.match(/\d{1}/g).length !== 10) { + $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{1}/g).length=== 10. Actual: ' + __string.match(/\d{1}/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/\d{1}/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; __string = "123456abcde7890"; __string.match(/\\d{1}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\d{1}/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/\d{1}/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; __string = "123456abcde7890"; __string.match(/\\d{1}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\d{1}/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js index 37c6ec04e..bf143c5e3 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T4 description: Regular expression is /\d{2}/g ---*/ -var __matches=["12", "34", "56", "78", "90"]; +var __matches = ["12", "34", "56", "78", "90"]; var __string = "123456abcde7890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/\d{2}/g).length!== 5) { - $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{2}/g).length=== 5. Actual: '+__string.match(/\d{2}/g).length); +if (__string.match(/\d{2}/g).length !== 5) { + $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{2}/g).length=== 5. Actual: ' + __string.match(/\d{2}/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/\d{2}/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["12", "34", "56", "78", "90"]; __string = "123456abcde7890"; __string.match(/\\d{2}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\d{2}/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/\d{2}/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["12", "34", "56", "78", "90"]; __string = "123456abcde7890"; __string.match(/\\d{2}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\d{2}/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js index 22044d86b..f2fc03437 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T5 description: Regular expression is /\D{2}/g ---*/ -var __matches=["ab", "cd"]; +var __matches = ["ab", "cd"]; var __string = "123456abcde7890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/\D{2}/g).length!== 2) { - $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\D{2}/g).length=== 2. Actual: '+__string.match(/\D{2}/g).length); +if (__string.match(/\D{2}/g).length !== 2) { + $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\D{2}/g).length=== 2. Actual: ' + __string.match(/\D{2}/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/\D{2}/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["ab", "cd"]; __string = "123456abcde7890"; __string.match(/\\D{2}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\D{2}/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/\D{2}/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["ab", "cd"]; __string = "123456abcde7890"; __string.match(/\\D{2}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\D{2}/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js index 1be783adf..7a1422d91 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js @@ -13,48 +13,48 @@ var __string = "Boston, Mass. 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]!== "02134") { - $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[0]=== "02134". Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0] !== "02134") { + $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[0]=== "02134". Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]!== "02134") { - $ERROR('#2: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[1]=== "02134". Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1] !== "02134") { + $ERROR('#2: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[1]=== "02134". Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]!== void 0) { - $ERROR('#3: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[2]=== void 0. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2] !== void 0) { + $ERROR('#3: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[2]=== void 0. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length !==3) { - $ERROR('#4: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).length ===3. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length ); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length !== 3) { + $ERROR('#4: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).length ===3. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#5 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index !==14) { - $ERROR('#5: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).index ===14. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index ); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index !== 14) { + $ERROR('#5: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).index ===14. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#6 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !==__string) { - $ERROR('#6: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).input ===__string. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input ); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !== __string) { + $ERROR('#6: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).input ===__string. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js index 48a7ba461..18e1477be 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js @@ -7,22 +7,22 @@ es5id: 15.5.4.10_A2_T7 description: Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __string = "Boston, Mass. 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length!== 1) { - $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g).length=== 1. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length !== 1) { + $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g).length=== 1. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]!==__matches[0]) { - $ERROR('#2: __matches=["02134"]; __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g)[0]===__matches[0]. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0] !== __matches[0]) { + $ERROR('#2: __matches=["02134"]; __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g)[0]===__matches[0]. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js index 27cf7c407..635952659 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js @@ -10,7 +10,7 @@ description: > = 0 ---*/ -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; @@ -19,25 +19,25 @@ var __string = "Boston, MA 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js index b37f8ec73..730494c45 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js @@ -12,7 +12,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; @@ -20,25 +20,25 @@ __re.lastIndex = __string.length; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = __string.length; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = __string.length; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A6.js index e7b44f13f..e2f257c4b 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A6.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.match.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.match.prototype !== undefined) { - $ERROR('#1: String.prototype.match.prototype === undefined. Actual: '+String.prototype.match.prototype ); + $ERROR('#1: String.prototype.match.prototype === undefined. Actual: ' + String.prototype.match.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A7.js index f3ab3f402..c1b66b3a6 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A7.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __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/match/S15.5.4.10_A8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A8.js index d07bced4d..dedeedfd4 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.match.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.match.hasOwnProperty('length')); + $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.match.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.match.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.match){ - if (p==="length") count++; +for (var p in String.prototype.match) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.match){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.match){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A9.js index e6c8b7d8a..71b5ba725 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A9.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.match.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.match.hasOwnProperty('length')); + $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.match.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.match.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.match.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.match.length; String.prototype.match.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.match.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.match.length; String.prototype.match.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.match.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/length.js b/test/built-ins/String/prototype/match/length.js index 674b25cad..89688b5da 100644 --- a/test/built-ins/String/prototype/match/length.js +++ b/test/built-ins/String/prototype/match/length.js @@ -25,7 +25,7 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.match.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.match.hasOwnProperty("length") return true. Actual: '+String.prototype.match.hasOwnProperty("length")); + $ERROR('#1: String.prototype.match.hasOwnProperty("length") return true. Actual: ' + String.prototype.match.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (!(String.prototype.match.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.match.length !== 1) { - $ERROR('#2: String.prototype.match.length === 1. Actual: '+String.prototype.match.length ); + $ERROR('#2: String.prototype.match.length === 1. Actual: ' + String.prototype.match.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/this-val-bool.js b/test/built-ins/String/prototype/match/this-val-bool.js index 65488e526..47765c59f 100644 --- a/test/built-ins/String/prototype/match/this-val-bool.js +++ b/test/built-ins/String/prototype/match/this-val-bool.js @@ -15,8 +15,12 @@ __instance.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.match(function(){return false;}())[0] !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: '+__instance.match(function(){return false;}())[0] ); +if (__instance.match(function() { + return false; + }())[0] !== "false") { + $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: ' + __instance.match(function() { + return false; + }())[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/this-val-obj.js b/test/built-ins/String/prototype/match/this-val-obj.js index 62c178186..65b477392 100644 --- a/test/built-ins/String/prototype/match/this-val-obj.js +++ b/test/built-ins/String/prototype/match/this-val-obj.js @@ -14,7 +14,7 @@ __instance.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.match(true)[0] !== "true") { - $ERROR('#1: __instance = new Object(true); __instance.match = String.prototype.match; __instance.match(true)[0] === "true". Actual: '+__instance.match(true)[0] ); + $ERROR('#1: __instance = new Object(true); __instance.match = String.prototype.match; __instance.match(true)[0] === "true". Actual: ' + __instance.match(true)[0]); } // ////////////////////////////////////////////////////////////////////////////// |