diff options
Diffstat (limited to 'test/built-ins/Error/prototype')
23 files changed, 58 insertions, 60 deletions
diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js index b7da126aa..e7bc80e56 100644 --- a/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js +++ b/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js @@ -8,7 +8,7 @@ description: Checking if deleting the Error.prototype property fails includes: [propertyHelper.js] ---*/ -var proto = Error.prototype; +var proto=Error.prototype; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 verifyNotConfigurable(Error, "prototype"); @@ -25,8 +25,8 @@ try { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (Error.prototype !== proto) { - $ERROR('#2: var proto=Error.prototype; delete Error.prototype; Error.prototype===proto. Actual: ' + Error.prototype); +if(Error.prototype!==proto){ + $ERROR('#2: var proto=Error.prototype; delete Error.prototype; Error.prototype===proto. Actual: '+Error.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js index d8ab08a9e..29a397af7 100644 --- a/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js +++ b/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js @@ -10,7 +10,7 @@ description: Checking if enumerating the Error.prototype property fails ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(Error.hasOwnProperty('prototype'))) { - $ERROR('#0: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype')); + $ERROR('#0: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -19,7 +19,7 @@ if (!(Error.hasOwnProperty('prototype'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (Error.propertyIsEnumerable('prototype')) { - $ERROR('#1: Error.propertyIsEnumerable(\'prototype\') return false. Actual: ' + Error.propertyIsEnumerable('prototype')); + $ERROR('#1: Error.propertyIsEnumerable(\'prototype\') return false. Actual: '+Error.propertyIsEnumerable('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,14 +27,14 @@ if (Error.propertyIsEnumerable('prototype')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var cout = 0; +var cout=0; -for (var p in Error) { - if (p === "prototype") cout++; +for (var p in Error){ + if (p==="prototype") cout++; } if (cout !== 0) { - $ERROR('#2: cout === 0. Actual: ' + cout); + $ERROR('#2: cout === 0. Actual: '+cout ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js index 2d2c78f91..d76e90fb5 100644 --- a/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js +++ b/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js @@ -11,21 +11,19 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(Error.hasOwnProperty('prototype'))) { - $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype')); + $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = Error.prototype; -verifyNotWritable(Error, "prototype", null, function() { - return "shifted"; -}); +verifyNotWritable(Error, "prototype", null, function(){return "shifted";}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (Error.prototype !== __obj) { - $ERROR('#2: __obj = Error.prototype; Error.prototype = function(){return "shifted";}; Error.prototype === __obj. Actual: ' + Error.prototype); + $ERROR('#2: __obj = Error.prototype; Error.prototype = function(){return "shifted";}; Error.prototype === __obj. Actual: '+Error.prototype ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js index 258f205e2..1770637ce 100644 --- a/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js +++ b/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js @@ -10,7 +10,7 @@ description: Checking Error.hasOwnProperty('prototype') ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(Error.hasOwnProperty('prototype'))) { - $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype')); + $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.4_A1.js b/test/built-ins/Error/prototype/S15.11.4_A1.js index c3b9afef4..cbb35f4bb 100644 --- a/test/built-ins/Error/prototype/S15.11.4_A1.js +++ b/test/built-ins/Error/prototype/S15.11.4_A1.js @@ -12,7 +12,7 @@ description: Get Error.prototype and compare with Object.prototype ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (!Object.prototype.isPrototypeOf(Error.prototype)) { - $ERROR('#1: Object.prototype.isPrototypeOf(Error.prototype) return true. Actual: ' + Object.prototype.isPrototypeOf(Error.prototype)); + $ERROR('#1: Object.prototype.isPrototypeOf(Error.prototype) return true. Actual: '+Object.prototype.isPrototypeOf(Error.prototype)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.4_A2.js b/test/built-ins/Error/prototype/S15.11.4_A2.js index bb85666d1..80f6cbc2b 100644 --- a/test/built-ins/Error/prototype/S15.11.4_A2.js +++ b/test/built-ins/Error/prototype/S15.11.4_A2.js @@ -11,13 +11,13 @@ description: > Error.prototype.toString() function ---*/ -Error.prototype.toString = Object.prototype.toString; +Error.prototype.toString=Object.prototype.toString; var __tostr = Error.prototype.toString(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__tostr !== "[object Object]") { - $ERROR('#1: Error.prototype.toString=Object.prototype.toString; __tostr = Error.prototype.toString(); __tostr === "[object Object]". Actual: ' + __tostr); + $ERROR('#1: Error.prototype.toString=Object.prototype.toString; __tostr = Error.prototype.toString(); __tostr === "[object Object]". Actual: '+__tostr ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.4_A3.js b/test/built-ins/Error/prototype/S15.11.4_A3.js index 72b2daf6b..e514df09a 100644 --- a/test/built-ins/Error/prototype/S15.11.4_A3.js +++ b/test/built-ins/Error/prototype/S15.11.4_A3.js @@ -10,10 +10,10 @@ description: Checking if call of Error prototype as a function fails ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - Error.prototype(); - $ERROR('#1: "Error.prototype()" lead to throwing exception'); + Error.prototype(); + $ERROR('#1: "Error.prototype()" lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.4_A4.js b/test/built-ins/Error/prototype/S15.11.4_A4.js index 354fd7802..751033a83 100644 --- a/test/built-ins/Error/prototype/S15.11.4_A4.js +++ b/test/built-ins/Error/prototype/S15.11.4_A4.js @@ -10,10 +10,10 @@ description: Checking if creating "new Error.prototype" fails ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var __instance = new Error.prototype; - $ERROR('#1: "var __instance = new Error.prototype" lead to throwing exception'); + var __instance = new Error.prototype; + $ERROR('#1: "var __instance = new Error.prototype" lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js index 01508f865..ced9d0090 100644 --- a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js +++ b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js @@ -12,7 +12,7 @@ description: Checking Error.prototype.constructor ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (Error.prototype.constructor !== Error) { - $ERROR('#1: Error.prototype.constructor === Error. Actual: ' + Error.prototype.constructor); + $ERROR('#1: Error.prototype.constructor === Error. Actual: '+Error.prototype.constructor ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js index 5a530d90f..14869ce39 100644 --- a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js +++ b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js @@ -18,7 +18,7 @@ var err = new constr; ////////////////////////////////////////////////////////////////////////////// // CHECK#0 if (err === undefined) { - $ERROR('#0: constr = Error.prototype.constructor; err = new constr; err === undefined'); + $ERROR('#0: constr = Error.prototype.constructor; err = new constr; err === undefined'); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (err === undefined) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (err.constructor !== Error) { - $ERROR('#1: constr = Error.prototype.constructor; err = new constr; err.constructor === Error. Actual: ' + err.constructor); + $ERROR('#1: constr = Error.prototype.constructor; err = new constr; err.constructor === Error. Actual: '+err.constructor ); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,17 +34,17 @@ if (err.constructor !== Error) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 if (!(Error.prototype.isPrototypeOf(err))) { - $ERROR('#2: constr = Error.prototype.constructor; err = new constr; Error.prototype.isPrototypeOf(err) return true. Actual: ' + Error.prototype.isPrototypeOf(err)); + $ERROR('#2: constr = Error.prototype.constructor; err = new constr; Error.prototype.isPrototypeOf(err) return true. Actual: '+Error.prototype.isPrototypeOf(err)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#3 -Error.prototype.toString = Object.prototype.toString; -var to_string_result = '[object ' + 'Error' + ']'; +Error.prototype.toString=Object.prototype.toString; +var to_string_result = '[object '+ 'Error' +']'; if (err.toString() !== to_string_result) { - $ERROR('#3: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.toString() === \'[object Error]\'. Actual: ' + err.toString()); + $ERROR('#3: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.toString() === \'[object Error]\'. Actual: '+err.toString() ); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +52,7 @@ if (err.toString() !== to_string_result) { ////////////////////////////////////////////////////////////////////////////// // CHECK#4 if (err.valueOf().toString() !== to_string_result) { - $ERROR('#4: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.valueOf().toString() === \'[object Error]\'. Actual: ' + err.valueOf().toString()); + $ERROR('#4: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.valueOf().toString() === \'[object Error]\'. Actual: '+err.valueOf().toString() ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/message/15.11.4.3-1.js b/test/built-ins/Error/prototype/message/15.11.4.3-1.js index 303078ba8..6860135a9 100644 --- a/test/built-ins/Error/prototype/message/15.11.4.3-1.js +++ b/test/built-ins/Error/prototype/message/15.11.4.3-1.js @@ -6,6 +6,6 @@ es5id: 15.11.4.3-1 description: Error.prototype.message is not enumerable. ---*/ -for (var i in Error.prototype) { - assert.notSameValue(i, "message", 'i'); -} + for (var i in Error.prototype) { + assert.notSameValue(i, "message", 'i'); + } diff --git a/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js b/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js index a5cad6d0e..14517881b 100644 --- a/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js +++ b/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js @@ -10,7 +10,7 @@ description: Checking Error.prototype.message ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (!Error.prototype.hasOwnProperty('message')) { - $ERROR('#1: Error.prototype.hasOwnProperty(\'message\') reurn true. Actual: ' + Error.prototype.hasOwnProperty('message')); + $ERROR('#1: Error.prototype.hasOwnProperty(\'message\') reurn true. Actual: '+Error.prototype.hasOwnProperty('message')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/name/15.11.4.2-1.js b/test/built-ins/Error/prototype/name/15.11.4.2-1.js index de519ef06..7df0656c1 100644 --- a/test/built-ins/Error/prototype/name/15.11.4.2-1.js +++ b/test/built-ins/Error/prototype/name/15.11.4.2-1.js @@ -6,6 +6,6 @@ es5id: 15.11.4.2-1 description: Error.prototype.name is not enumerable. ---*/ -for (var i in Error.prototype) { - assert.notSameValue(i, "name", 'i'); -} + for (var i in Error.prototype) { + assert.notSameValue(i, "name", 'i'); + } diff --git a/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js b/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js index 3c3a6475a..9f9acadf0 100644 --- a/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js +++ b/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js @@ -10,7 +10,7 @@ description: Checking Error.prototype.name ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (!Error.prototype.hasOwnProperty('name')) { - $ERROR('#1: Error.prototype.hasOwnProperty(\'name\') return true. Actual: ' + Error.prototype.hasOwnProperty('name')); + $ERROR('#1: Error.prototype.hasOwnProperty(\'name\') return true. Actual: '+Error.prototype.hasOwnProperty('name')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js b/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js index 8ee95946e..05f044cc7 100644 --- a/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js +++ b/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js @@ -9,8 +9,8 @@ description: Checking value of Error.prototype.name ////////////////////////////////////////////////////////////////////////////// // CHECK#1 -if (Error.prototype.name !== "Error") { - $ERROR('#1: Error.prototype.name==="Error". Actual: ' + Error.prototype.name); +if (Error.prototype.name!=="Error") { + $ERROR('#1: Error.prototype.name==="Error". Actual: '+Error.prototype.name); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js index f4a2b6357..dd30cf0ea 100644 --- a/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js +++ b/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js @@ -9,7 +9,7 @@ description: > 'msg' are non-empty string ---*/ -var errObj = new Error("ErrorMessage"); -errObj.name = "ErrorName"; + var errObj = new Error("ErrorMessage"); + errObj.name = "ErrorName"; assert.sameValue(errObj.toString(), "ErrorName: ErrorMessage", 'errObj.toString()'); diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js index 0235303d8..efd54b91d 100644 --- a/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js +++ b/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js @@ -8,6 +8,6 @@ description: > absent and empty string is returned when 'msg' is undefined ---*/ -var errObj = new Error(); + var errObj = new Error(); assert.sameValue(errObj.toString(), "Error", 'errObj.toString()'); diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js b/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js index c10b3a9f6..28db42997 100644 --- a/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js +++ b/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js @@ -9,6 +9,6 @@ description: > string ---*/ -var errObj = new Error("ErrorMessage"); + var errObj = new Error("ErrorMessage"); assert.sameValue(errObj.toString(), "Error: ErrorMessage", 'errObj.toString()'); diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js index 7aa42aa76..835145acb 100644 --- a/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js +++ b/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js @@ -8,7 +8,7 @@ description: > empty string and 'msg' isn't undefined ---*/ -var errObj = new Error("ErrorMessage"); -errObj.name = ""; + var errObj = new Error("ErrorMessage"); + errObj.name = ""; assert.sameValue(errObj.toString(), "ErrorMessage", 'errObj.toString()'); diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js b/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js index 7534084cb..b79e46eed 100644 --- a/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js +++ b/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js @@ -11,8 +11,8 @@ description: > var errObj = new Error(); errObj.name = ""; if (errObj.name !== "") { - $ERROR("Expected errObj.name to be '', actually " + errObj.name); + $ERROR("Expected errObj.name to be '', actually " + errObj.name); } if (errObj.toString() !== "") { - $ERROR("Expected errObj.toString() to be '', actually " + errObj.toString()); + $ERROR("Expected errObj.toString() to be '', actually " + errObj.toString()); } diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js index be197606b..2f86f3150 100644 --- a/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js +++ b/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js @@ -8,7 +8,7 @@ description: > string and 'msg' is empty string ---*/ -var errObj = new Error(); -errObj.name = "ErrorName"; + var errObj = new Error(); + errObj.name = "ErrorName"; assert.sameValue(errObj.toString(), "ErrorName", 'errObj.toString()'); diff --git a/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js b/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js index d5d22db6f..bcd99d2f7 100644 --- a/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js +++ b/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js @@ -10,7 +10,7 @@ description: Checking Error.prototype.toString ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (!Error.prototype.hasOwnProperty('toString')) { - $ERROR('#1: Error.prototype.hasOwnProperty(\'toString\') return true. Actual: ' + Error.prototype.hasOwnProperty('toString')); + $ERROR('#1: Error.prototype.hasOwnProperty(\'toString\') return true. Actual: '+Error.prototype.hasOwnProperty('toString')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js b/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js index de13b6242..35ce0d95e 100644 --- a/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js +++ b/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js @@ -9,15 +9,15 @@ description: Checking if call of Error.prototype.toSting() fails ////////////////////////////////////////////////////////////////////////////// // CHECK#1 -var err1 = new Error("Error"); -try { - var toStr = err1.toString(); +var err1=new Error("Error"); +try{ + var toStr=err1.toString(); } -catch (e) { - $ERROR('#1: var err1=new Error("Error"); var toStr=err1.toString(); lead to throwing exception. Exception is ' + e); +catch(e){ + $ERROR('#1: var err1=new Error("Error"); var toStr=err1.toString(); lead to throwing exception. Exception is '+e); } -if (toStr === undefined) { - $ERROR('#2: var err1=new Error("Error"); var toStr=err1.toString(); toStr!==undefined. Actual: ' + toStr); +if (toStr===undefined) { + $ERROR('#2: var err1=new Error("Error"); var toStr=err1.toString(); toStr!==undefined. Actual: '+toStr); } // ////////////////////////////////////////////////////////////////////////////// |