diff options
Diffstat (limited to 'test/built-ins/String/prototype/charCodeAt')
18 files changed, 61 insertions, 45 deletions
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js index 24ac13274..ea9c7dac9 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js @@ -7,7 +7,11 @@ es5id: 15.5.4.5_A1.1 description: Checking by using eval ---*/ -function __FACTORY(){this.toString = function(){ return "wizard";};}; +function __FACTORY() { + this.toString = function() { + return "wizard"; + }; +}; __FACTORY.prototype.charCodeAt = String.prototype.charCodeAt; @@ -15,8 +19,8 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__instance.charCodeAt(eval("1"),true,null,{})!== 0x69) { - $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})==='+__instance.charCodeAt(eval("1"),true,null,{})); - } +if (__instance.charCodeAt(eval("1"), true, null, {}) !== 0x69) { + $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})===' + __instance.charCodeAt(eval("1"), true, null, {})); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js index a22bf9d0e..39c531e38 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.charCodeAt.length; -verifyNotWritable(String.prototype.charCodeAt, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.charCodeAt, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.length !== __obj) { - $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: '+String.prototype.charCodeAt.length ); + $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: ' + String.prototype.charCodeAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js index 1137dff67..f35538135 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charCodeAt.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charCodeAt.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty("length") return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty("length")); + $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty("length") return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.charCodeAt.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.length !== 1) { - $ERROR('#2: String.prototype.charCodeAt.length === 1. Actual: '+String.prototype.charCodeAt.length ); + $ERROR('#2: String.prototype.charCodeAt.length === 1. Actual: ' + String.prototype.charCodeAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js index 5cd5570ea..8c31caede 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js @@ -13,8 +13,8 @@ __instance.charCodeAt = String.prototype.charCodeAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((__instance.charCodeAt(false) !== 52)||(__instance.charCodeAt(true) !== 50)) { - $ERROR('#1: __instance = new Object(42); __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false) === 52 and __instance.charCodeAt(true) === 50. Actual: __instance.charCodeAt(false) ==='+__instance.charCodeAt(false)+' and __instance.charCodeAt(true) ==='+__instance.charCodeAt(true) ); +if ((__instance.charCodeAt(false) !== 52) || (__instance.charCodeAt(true) !== 50)) { + $ERROR('#1: __instance = new Object(42); __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false) === 52 and __instance.charCodeAt(true) === 50. Actual: __instance.charCodeAt(false) ===' + __instance.charCodeAt(false) + ' and __instance.charCodeAt(true) ===' + __instance.charCodeAt(true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js index 74b3895c5..c1391358e 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js @@ -7,13 +7,17 @@ es5id: 15.5.4.5_A1_T10 description: Call charCodeAt() function with object argument ---*/ -var __obj = {toString:function(){return 1;}} +var __obj = { + toString: function() { + return 1; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.charCodeAt(__obj) !== 0x65) { - $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: '+__str.charCodeAt(__obj) ); - } +if (__str.charCodeAt(__obj) !== 0x65) { + $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: ' + __str.charCodeAt(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js index 547304029..1013fba88 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js @@ -13,24 +13,24 @@ __instance.charCodeAt = String.prototype.charCodeAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.charCodeAt(false)!==0x66) { - $ERROR('#1: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false)===0x66. Actual: '+__instance.charCodeAt(false)); +if (__instance.charCodeAt(false) !== 0x66) { + $ERROR('#1: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false)===0x66. Actual: ' + __instance.charCodeAt(false)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__instance.charCodeAt(true)!==0x61) { - $ERROR('#2: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true)===0x61. Actual: '+__instance.charCodeAt(true)); +if (__instance.charCodeAt(true) !== 0x61) { + $ERROR('#2: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true)===0x61. Actual: ' + __instance.charCodeAt(true)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__instance.charCodeAt(true+1) !== 0x6C) { - $ERROR('#3: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true+1) === 0x6C. Actual: '+__instance.charCodeAt(true+1) ); +if (__instance.charCodeAt(true + 1) !== 0x6C) { + $ERROR('#3: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true+1) === 0x6C. Actual: ' + __instance.charCodeAt(true + 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js index 8b0b253dc..05ee919d8 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js @@ -11,7 +11,7 @@ description: Call charCodeAt() function without argument of string object //CHECK#1 //since Number() evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if ("smart".charCodeAt() !== 0x73) { - $ERROR('#1: "smart".charCodeAt() === 0x73. Actual: "smart".charCodeAt() ==='+("smart".charCodeAt()) ); + $ERROR('#1: "smart".charCodeAt() === 0x73. Actual: "smart".charCodeAt() ===' + ("smart".charCodeAt())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js index a80b2b0ca..b3535ed20 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js @@ -10,8 +10,12 @@ description: Call charCodeAt() function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(null) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) -if (function(){return "lego"}().charCodeAt(null) !== 0x6C) { - $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: '+function(){return "lego"}().charCodeAt(null) ); +if (function() { + return "lego" + }().charCodeAt(null) !== 0x6C) { + $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: ' + function() { + return "lego" + }().charCodeAt(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js index 3ddf8b0e7..d09356f16 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if (new String("lego").charCodeAt(x) !== 0x6C) { - $ERROR('#1: var x; new String("lego").charCodeAt(x) === 0x6C. Actual: new String("lego").charCodeAt(x) ==='+new String("lego").charCodeAt(x) ); + $ERROR('#1: var x; new String("lego").charCodeAt(x) === 0x6C. Actual: new String("lego").charCodeAt(x) ===' + new String("lego").charCodeAt(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js index a59910356..e8f6d6410 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js @@ -11,7 +11,7 @@ description: Call charCodeAt() function with undefined argument of string object //CHECK#1 //since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if (String("lego").charCodeAt(undefined) !== 0x6C) { - $ERROR('#1: String("lego").charCodeAt(undefined) === 0x6C. Actual: String("lego").charCodeAt(undefined) ==='+String("lego").charCodeAt(undefined) ); + $ERROR('#1: String("lego").charCodeAt(undefined) === 0x6C. Actual: String("lego").charCodeAt(undefined) ===' + String("lego").charCodeAt(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js index 8a6b06344..860c1d4ec 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js @@ -11,7 +11,7 @@ description: Call charCodeAt() function with void 0 argument of string object //CHECK#1 //since ToInteger(void 0) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if (String(42).charCodeAt(void 0) !== 0x34) { - $ERROR('#1: String(42).charCodeAt(void 0) === 0x34. Actual: String(42).charCodeAt(void 0) ==='+String(42).charCodeAt(void 0) ); + $ERROR('#1: String(42).charCodeAt(void 0) === 0x34. Actual: String(42).charCodeAt(void 0) ===' + String(42).charCodeAt(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js index 9a336549c..e1f00f767 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) -if (new String(42).charCodeAt(function(){}()) !== 0x34) { - $ERROR('#1: new String(42).charCodeAt(function(){}()) === 0x34. Actual: new String(42).charCodeAt(function(){}()) ==='+new String(42).charCodeAt(function(){}()) ); +if (new String(42).charCodeAt(function() {}()) !== 0x34) { + $ERROR('#1: new String(42).charCodeAt(function(){}()) === 0x34. Actual: new String(42).charCodeAt(function(){}()) ===' + new String(42).charCodeAt(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js index 290fad88b..3c06c1b08 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js @@ -9,7 +9,7 @@ es5id: 15.5.4.5_A2 description: Call charCodeAt(pos) with negative pos ---*/ -function __FACTORY(){}; +function __FACTORY() {}; __FACTORY.prototype.charCodeAt = String.prototype.charCodeAt; diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js index 29301ca72..c46f0f2b8 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js @@ -9,10 +9,12 @@ es5id: 15.5.4.5_A4 description: Change toString function, it trow exception, and call charCodeAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charCodeAt:String.prototype.charCodeAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charCodeAt: String.prototype.charCodeAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: "var x = __obj.charCodeAt()" lead to throwing exception'); } catch (e) { if (e !== 'intostring') { - $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e ); + $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e); } } // diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js index 4098f04d2..97e0f9b83 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charCodeAt.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.charCodeAt.prototype !== undefined) { - $ERROR('#1: String.prototype.charCodeAt.prototype === undefined. Actual: '+String.prototype.charCodeAt.prototype ); + $ERROR('#1: String.prototype.charCodeAt.prototype === undefined. Actual: ' + String.prototype.charCodeAt.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js index 23aa00ba8..d21d56d81 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.charCodeAt; "__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/charCodeAt/S15.5.4.5_A8.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js index e70cadbd2..6c3fe2a90 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,21 +21,21 @@ if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.charCodeAt.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.charCodeAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charCodeAt.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.charCodeAt.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.charCodeAt.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.charCodeAt){ - if (p==="length") count++; +for (var p in String.prototype.charCodeAt) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.charCodeAt){if (p==="length") count++;} count === 0. Actual: count ==='+count ); + $ERROR('#2: count=0; for (p in String.prototype.charCodeAt){if (p==="length") count++;} count === 0. Actual: count ===' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js index 6c39315e2..b09375f23 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.charCodeAt.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.charCodeAt.length; String.prototype.charCodeAt.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.charCodeAt.length; String.prototype.charCodeAt.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// |